Part Number Hot Search : 
KPC6N137 22000 AT91R TA8263 29LV010 109F1A63 33000 3SDC10
Product Description
Full Text Search
 

To Download XC2361B Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 16/32-Bit
Architecture
XC2361B, XC2363B, XC2364B, XC2365B
16/32-Bit Single-Chip Microcontroller with 32-Bit Performance XC2000 Family / Value Line
Data Sheet
V1.2 2010-04
Microcontrollers
Edition 2010-04 Published by Infineon Technologies AG 81726 Munich, Germany
(c) 2010 Infineon Technologies AG All Rights Reserved.
Legal Disclaimer The information given in this document shall in no event be regarded as a guarantee of conditions or characteristics. With respect to any examples or hints given herein, any typical values stated herein and/or any information regarding the application of the device, Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind, including without limitation, warranties of non-infringement of intellectual property rights of any third party. Information For further information on technology, delivery terms and conditions and prices, please contact the nearest Infineon Technologies Office (www.infineon.com). Warnings Due to technical requirements, components may contain dangerous substances. For information on the types in question, please contact the nearest Infineon Technologies Office. Infineon Technologies components may be used in life-support devices or systems only with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system or to affect the safety or effectiveness of that device or system. Life support devices or systems are intended to be implanted in the human body or to support and/or maintain and sustain and/or protect human life. If they fail, it is reasonable to assume that the health of the user or other persons may be endangered.
16/32-Bit
Architecture
XC2361B, XC2363B, XC2364B, XC2365B
16/32-Bit Single-Chip Microcontroller with 32-Bit Performance XC2000 Family / Value Line
Data Sheet
V1.2 2010-04
Microcontrollers
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
XC236xB Data Sheet Revision History: V1.2 2010-04 Previous Versions: V1.1, 2009-07 V1.0, 2009-03 Preliminary Page 38 77, 79 89 101 125 Subjects (major changes since last revision) ID values completed to cover current available chip markings Added the correct test conditions for "Pull Level Currents" "Startup time from stopover" typical value not applicable (removed), adjusted maximum value to cover measurement inaccuracy Dependency of VAX1 from input clock frequency added Thermal resistance values corrected. Values apply to 4-layer PCBs only.
Trademarks C166TM, TriCoreTM and DAVETM are trademarks of Infineon Technologies AG. We Listen to Your Comments Is there any information in this document that you feel is wrong, unclear or missing? Your feedback will help us to continuously improve the quality of this document. Please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com
Data Sheet
4
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Table of Contents
Table of Contents
1 1.1 1.2 1.3 2 2.1 2.2 3 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4 4.1 4.1.1 4.2 4.2.1 4.3 4.3.1 4.3.2 4.3.3 4.4 4.5 4.6 Summary of Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Basic Device Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Special Device Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Definition of Feature Variants . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 General Device Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Pin Configuration and Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Identification Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Functional Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Subsystem and Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Bus Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Central Processing Unit (CPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Protection Unit (MPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Memory Checker Module (MCHK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interrupt System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . On-Chip Debug Support (OCDS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Capture/Compare Unit (CC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Capture/Compare Units CCU6x . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Purpose Timer (GPT12E) Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . Real Time Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A/D Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Universal Serial Interface Channel Modules (USIC) . . . . . . . . . . . . . . . . . MultiCAN Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parallel Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Instruction Set Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Electrical Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Voltage Range definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter Interpretation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DC Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DC Parameters for Upper Voltage Area . . . . . . . . . . . . . . . . . . . . . . . . DC Parameters for Lower Voltage Area . . . . . . . . . . . . . . . . . . . . . . . . Power Consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Analog/Digital Converter Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flash Memory Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
39 40 44 45 47 47 48 49 50 53 55 59 61 62 64 65 65 66 67 68 71 71 72 74 74 75 77 79 81 85 89 92
Data Sheet
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Table of Contents 4.7 4.7.1 4.7.2 4.7.2.1 4.7.2.2 4.7.2.3 4.7.3 4.7.4 4.7.5 4.7.5.1 4.7.6 4.7.7 5 5.1 5.2 AC Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Testing Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 Definition of Internal Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 Phase Locked Loop (PLL) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 Wakeup Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 Selecting and Changing the Operating Frequency . . . . . . . . . . . . . . 99 External Clock Input Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 Pad Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 External Bus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 Bus Cycle Control with the READY Input . . . . . . . . . . . . . . . . . . . . 112 Synchronous Serial Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . 115 Debug Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Package and Reliability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Packaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 Thermal Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Data Sheet
6
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features
16/32-Bit Single-Chip Microcontroller with 32-Bit Performance XC236xB (XC2000 Family)
1
Summary of Features
For a quick overview and easy reference, the features of the XC236xB are summarized here. * High-performance CPU with five-stage pipeline and MPU - 12.5 ns instruction cycle @ 80 MHz CPU clock (single-cycle execution) - One-cycle 32-bit addition and subtraction with 40-bit result - One-cycle multiplication (16 x 16 bit) - Background division (32 / 16 bit) in 21 cycles - One-cycle multiply-and-accumulate (MAC) instructions - Enhanced Boolean bit manipulation facilities - Zero-cycle jump execution - Additional instructions to support HLL and operating systems - Register-based design with multiple variable register banks - Fast context switching support with two additional local register banks - 16 Mbytes total linear address space for code and data - 1,024 Bytes on-chip special function register area (C166 Family compatible) - Integrated Memory Protection Unit (MPU) Interrupt system with 16 priority levels providing 96 interrupt nodes - Selectable external inputs for interrupt generation and wake-up - Fastest sample-rate 12.5 ns Eight-channel interrupt-driven single-cycle data transfer with Peripheral Event Controller (PEC), 24-bit pointers cover total address space Clock generation from internal or external clock sources, using on-chip PLL or prescaler Hardware CRC-Checker with Programmable Polynomial to Supervise On-Chip Memory Areas On-chip memory modules - 8 Kbytes on-chip stand-by RAM (SBRAM) - 2 Kbytes on-chip dual-port RAM (DPRAM) - Up to 16 Kbytes on-chip data SRAM (DSRAM) - Up to 16 Kbytes on-chip program/data SRAM (PSRAM) - Up to 320 Kbytes on-chip program memory (Flash memory) - Memory content protection through Error Correction Code (ECC)
*
* * * *
Data Sheet
7
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features * On-Chip Peripheral Modules - Two synchronizable A/D Converters with up to 16 channels, 10-bit resolution, conversion time below 1 s, optional data preprocessing (data reduction, range check), broken wire detection - 16-channel general purpose capture/compare unit (CC2) - Two capture/compare units for flexible PWM signal generation (CCU6x) - Multi-functional general purpose timer unit with 5 timers - Up to 6 serial interface channels to be used as UART, LIN, high-speed synchronous channel (SPI/QSPI), IIC bus interface (10-bit addressing, 400 kbit/s), IIS interface - On-chip MultiCAN interface (Rev. 2.0B active) with 64 message objects (Full CAN/Basic CAN) on up to 3 CAN nodes and gateway functionality - On-chip system timer and on-chip real time clock Up to 12 Mbytes external address space for code and data - Programmable external bus characteristics for different address ranges - Multiplexed or demultiplexed external address/data buses - Selectable address bus width - 16-bit or 8-bit data bus width - Four programmable chip-select signals Single power supply from 3.0 V to 5.5 V Power reduction and wake-up modes Programmable watchdog timer and oscillator watchdog Up to 76 general purpose I/O lines On-chip bootstrap loaders Supported by a full range of development tools including C compilers, macroassembler packages, emulators, evaluation boards, HLL debuggers, simulators, logic analyzer disassemblers, programming boards On-chip debug support via Device Access Port (DAP) or JTAG interface 100-pin Green LQFP package, 0.5 mm (19.7 mil) pitch
*
* * * * * *
* *
Data Sheet
8
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features Ordering Information The ordering code for an Infineon microcontroller provides an exact reference to a specific product. This ordering code identifies: * * the derivative itself, i.e. its function set, the temperature range, and the supply voltage the temperature range: - SAF-...: -40C to 85C - SAK-...: -40C to 125C the package and the type of delivery.
*
For ordering codes for the XC236xB please contact your sales representative or local distributor. This document describes several derivatives of the XC236xB group: Basic Device Types are readily available and Special Device Types are only available on request. As this document refers to all of these derivatives, some descriptions may not apply to a specific product, in particular to the special device types. For simplicity the term XC236xB is used for all derivatives throughout this document.
Data Sheet
9
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features
1.1
Basic Device Types
Basic device types are available and can be ordered through Infineon's direct and/or distribution channels. The devices are available for the SAK temperature range only. Table 1 Derivative
1)
Synopsis of XC236xB Basic Device Types Flash Memory2) PSRAM Capt./Comp. DSRAM3) Modules ADC4) Interfaces4) Chan. 11 + 5 2 CAN Node, 4 Serial Chan. 11 + 5 2 CAN Node, 4 Serial Chan. 11 + 5 3 CAN Node, 6 Serial Chan.
XC2364B-24F40L 192 Kbytes 8 Kbytes CC2 16 Kbytes CCU60/1 XC2364B-40F80L 320 Kbytes 16 Kbytes CC2 16 Kbytes CCU60/1 XC2365B-40F80L 320 Kbytes 16 Kbytes CC2 16 Kbytes CCU60/1
1) The 80 MHz type is marked ...80L. The 40 MHz type is marked ...40L. 2) Specific information about the on-chip Flash memory in Table 3.
3) All derivatives additionally provide 8 Kbytes SBRAM and 2 Kbytes DPRAM. 4) Specific information about the available channels in Table 5. Analog input channels are listed for each Analog/Digital Converter module separately (ADC0 + ADC1).
Data Sheet
10
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features
1.2
Special Device Types
Special device types are only available for high-volume applications on request. The devices are available for the SAK and SAF temperature ranges. Table 2 Derivative
1)
Synopsis of XC236xB Special Device Types Flash Memory2) PSRAM DSRAM3) Capt./Comp. ADC4) Interfaces4) Modules Chan. CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 CC2 CCU60/1 11 + 5 2 CAN Node, 6 Serial Chan. 11 + 5 2 CAN Node, 6 Serial Chan. 4+4 4+4 2 CAN Node, 2 Serial Chan. 2 CAN Node, 2 Serial Chan.
XC2361B-24FxL XC2361B-40FxL XC2363B-24FxL XC2363B-40FxL XC2364B-24FxL XC2364B-40FxL XC2365B-24FxL XC2365B-40FxL
192 Kbytes 8 Kbytes 16 Kbytes 320 Kbytes 16 Kbytes 16 Kbytes 192 Kbytes 8 Kbytes 16 Kbytes 320 Kbytes 16 Kbytes 16 Kbytes 192 Kbytes 8 Kbytes 16 Kbytes 320 Kbytes 16 Kbytes 16 Kbytes 192 Kbytes 8 Kbytes 16 Kbytes 320 Kbytes 16 Kbytes 16 Kbytes
11 + 5 2 CAN Node, 4 Serial Chan. 11 + 5 2 CAN Node, 4 Serial Chan. 11 + 5 3 CAN Node, 6 Serial Chan. 11 + 5 3 CAN Node, 6 Serial Chan.
1) x is a placeholder for available speed grade in MHz. Can be 20, 40, 66 or 80. 2) Specific information about the on-chip Flash memory in Table 3. 3) All derivatives additionally provide 8 Kbytes SBRAM and 2 Kbytes DPRAM. 4) Specific information about the available channels in Table 5. Analog input channels are listed for each Analog/Digital Converter module separately (ADC0 + ADC1).
Data Sheet
11
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features
1.3
Definition of Feature Variants
The XC236xB types are offered with several Flash memory sizes. Table 3 and Table 4 describe the location of the available Flash memory. Table 3 320 Kbytes 192 Kbytes Continuous Flash Memory Ranges 1st Range1) C0'0000H ... C0'EFFFH C0'0000H ... C0'EFFFH 2nd Range C1'0000H ... C4'FFFFH C1'0000H ... C1'FFFFH 3rd Range n.a. C4'0000H ... C4'FFFFH
Total Flash Size
1) The uppermost 4-Kbyte sector of the first Flash segment is reserved for internal use (C0'F000H to C0'FFFFH).
Table 4 320 192
Flash Memory Module Allocation (in Kbytes) Flash 01) 256 128 Flash 1 64 64
Total Flash Size
1) The uppermost 4-Kbyte sector of the first Flash segment is reserved for internal use (C0'F000H to C0'FFFFH).
The XC236xB types are offered with different interface options. Table 5 lists the available channels for each option. Table 5 Interface Channel Association Available Channels / Message Objects CH0, CH2 ... CH5, CH8 ... CH11, CH13, CH15 CH0, CH2 ... CH4 CH0, CH2, CH4 ... CH6 CH0, CH2, CH4, CH5 CAN0, CAN1 64 message objects CAN0, CAN1, CAN2 64 message objects U0C0, U0C1 U0C0, U0C1, U1C0, U1C1 U0C0, U0C1, U1C0, U1C1, U2C0, U2C1
Total Number 11 ADC0 channels 4 ADC0 channels 5 ADC1 channels 4 ADC1 channels 2 CAN nodes 3 CAN nodes 2 serial channels 4 serial channels 6 serial channels
Data Sheet
12
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Summary of Features The XC236xB types are offered with several SRAM memory sizes. Figure 1 shows the allocation rules for PSRAM and DSRAM. Note that the rules differ: * * PSRAM allocation starts from the lower address DSRAM allocation starts from the higher address
For example 8 Kbytes of PSRAM will be allocated at E0'0000h-E0'1FFFh and 8 Kbytes of DSRAM will be at 00'C000h-00'DFFFh.
E7'FFFFh (EF'FFFFh)
Reserved for PSRAM
00'DFFFh
Available DSRAM
Available PSRAM Reserved for DSRAM
E0'0000h (E8'0000h)
Figure 1 SRAM Allocation
00'8000h
MC_XC_SRAM_ALLOCATION
Data Sheet
13
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information
2
General Device Information
The XC236xB series (16/32-Bit Single-Chip Microcontroller with 32-Bit Performance) is a part of the Infineon XC2000 Family of full-feature singlechip CMOS microcontrollers. These devices extend the functionality and performance of the C166 Family in terms of instructions (MAC unit), peripherals, and speed. They combine high CPU performance (up to 80 million instructions per second) with extended peripheral functionality and enhanced IO capabilities. Optimized peripherals can be adapted flexibly to meet the application requirements. These derivatives utilize clock generation via PLL and internal or external clock sources. On-chip memory modules include program Flash, program RAM, and data RAM.
VAREF VAGND
(1) (1)
VDDI VDDP VSS
(4) (9) (4) Port 0 8 bit Port 1 8 bit Port 2 14 bit
XTAL1 XTAL2 ESR0 ESR1
Port 10 16 bit
Port 4 4 bit Port 6 3 bit
Port 15 5 bit Port 5 11 bit
Port 7 5 bit
PORST
TRST DAP/JTAG Debug 2 / 4 bit 2 bit via Port Pins TESTM
MC_XY_LOGSYMB100
Figure 2
Data Sheet
XC236xB Logic Symbol
14 V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information
2.1
Pin Configuration and Definition
The pins of the XC236xB are described in detail in Table 6, which includes all alternate functions. For further explanations please refer to the footnotes at the end of the table. The following figure summarizes all pins, showing their locations on the four sides of the package.
VSS VDDPB TESTM P7.2 TRST P7.0 P7.3 P7.1 P7.4 VDDIM P6.0 P6.1 P6.2 VDDPA P15.0 P15.2 P15.4 P15.5 P15.6 VAREF VAGND P5.0 P5.2 P5.3 VDDPB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
VDDPB ESR0 ESR1 PORST XTAL1 XTAL2 P1.7 P1.6 P1.5 P10.15 P1.4 P10.14 VDDI1 P1.3 P10.13 P10.12 P1.2 P10.11 P10.10 P1.1 P10.9 P10.8 P1.0 VDDPB VS S
LQFP-100
VDDPB P0.7 P10.7 P10.6 P0.6 P10.5 P10.4 P0.5 P10.3 P2.10 P2.13 VDDI1 P0.4 P10.2 P0.3 P10.1 P10.0 P0.2 P2.9 P2.8 P0.1 P2.7 P0.0 VDDPB VSS
VSS VDDPB P5.4 P5.5 P5.8 P5.9 P5.10 P5.11 P5.13 P5.15 P2.12 P2.11 VDDI1 P2.0 P2.1 P2.2 P4.0 P2.3 P4.1 P2.4 P2.5 P4.2 P2.6 P4.3 VDDPB
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
MC_XY_PIN100
Figure 3
XC236xB Pin Configuration (top view)
Data Sheet
15
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Key to Pin Definitions * Ctrl.: The output signal for a port pin is selected by bit field PC in the associated register Px_IOCRy. Output O0 is selected by setting the respective bit field PC to 1x00B, output O1 is selected by 1x01B, etc. Output signal OH is controlled by hardware. Type: Indicates the pad type and its power supply domain (A, B, M, 1). - St: Standard pad - Sp: Special pad e.g. XTALx - DP: Double pad - can be used as standard or high speed pad - In: Input only pad - PS: Power supply pad Pin Definitions and Functions Ctrl. I Type Function In/B Testmode Enable Enables factory test modes, must be held HIGH for normal operation (connect to VDDPB). An internal pull-up device will hold this pin high when nothing is driving it. Bit 2 of Port 7, General Purpose Input/Output External Analog MUX Control Output 0 (ADC1) JTAG Test Data Input If JTAG pos. C is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. Test-System Reset Input For normal system operation, pin TRST should be held low. A high level at this pin at the rising edge of PORST activates the XC236xB's debug system. In this case, pin TRST must be driven low once to reset the debug system. An internal pull-down device will hold this pin low when nothing is driving it.
*
Table 6 Pin 3 TESTM
Symbol
4
P7.2 EMUX0 TDI_C
O0 / I St/B O1 IH St/B St/B
5
TRST
I
In/B
Data Sheet
16
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 6 P7.0 T3OUT T6OUT TDO_A Pin Definitions and Functions (cont'd) Ctrl. O1 O2 OH / IH Type Function Bit 0 of Port 7, General Purpose Input/Output GPT12E Timer T3 Toggle Latch Output GPT12E Timer T6 Toggle Latch Output JTAG Test Data Output / DAP1 Input/Output If DAP pos. 0 or 2 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. ESR2 Trigger Input 1 Bit 3 of Port 7, General Purpose Input/Output External Analog MUX Control Output 1 (ADC1) USIC0 Channel 1 Shift Data Output USIC0 Channel 0 Shift Data Output JTAG Test Mode Selection Input If JTAG pos. C is selected during start-up, an internal pull-up device will hold this pin low when nothing is driving it. USIC0 Channel 1 Shift Data Input Bit 1 of Port 7, General Purpose Input/Output Programmable Clock Signal Output OCDS Break Signal Input Bit 4 of Port 7, General Purpose Input/Output External Analog MUX Control Output 2 (ADC1) USIC0 Channel 1 Shift Data Output USIC0 Channel 1 Shift Clock Output DAP0/JTAG Clock Input If JTAG pos. C is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. If DAP pos. 2 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. USIC0 Channel 0 Shift Data Input USIC0 Channel 1 Shift Clock Input
17 V1.2, 2010-04
Symbol
O0 / I St/B St/B St/B St/B
ESR2_1 7 P7.3 EMUX1
I O1
St/B St/B St/B St/B St/B
O0 / I St/B
U0C1_DOUT O2 U0C0_DOUT O3 TMS_C IH
U0C1_DX0F 8 P7.1 EXTCLK BRKIN_C 9 P7.4 EMUX2 U0C1_SCLK OUT TCK_C
I O1 I O1 O3 IH
St/B St/B St/B St/B St/B St/B St/B
O0 / I St/B
O0 / I St/B
U0C1_DOUT O2
U0C0_DX0D U0C1_DX1E
Data Sheet
I I
St/B St/B
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 11 P6.0 EMUX0 TxDC2 BRKOUT Pin Definitions and Functions (cont'd) Ctrl. O1 O2 O3 Type Function DA/A External Analog MUX Control Output 0 (ADC0) DA/A CAN Node 2 Transmit Data Output DA/A OCDS Break Signal Output DA/A External Request Gate Input for ADC0/1 DA/A USIC1 Channel 1 Shift Data Input DA/A External Analog MUX Control Output 1 (ADC0) DA/A GPT12E Timer T3 Toggle Latch Output DA/A USIC1 Channel 1 Shift Data Output DA/A External Request Trigger Input for ADC0/1 DA/A CAN Node 2 Receive Data Input DA/A ESR1 Trigger Input 6 DA/A External Analog MUX Control Output 2 (ADC0) DA/A GPT12E Timer T6 Toggle Latch Output DA/A USIC1 Channel 1 Shift Clock Output DA/A USIC1 Channel 1 Shift Clock Input In/A In/A In/A In/A In/A In/A In/A In/A Bit 0 of Port 15, General Purpose Input Analog Input Channel 0 for ADC1 Bit 2 of Port 15, General Purpose Input Analog Input Channel 2 for ADC1 GPT12E Timer T5 Count/Gate Input Bit 4 of Port 15, General Purpose Input Analog Input Channel 4 for ADC1 GPT12E Timer T6 Count/Gate Input O0 / I DA/A Bit 0 of Port 6, General Purpose Input/Output
Symbol
ADCx_REQG I TyG U1C1_DX0E 12 P6.1 EMUX1 T3OUT I O1 O2
O0 / I DA/A Bit 1 of Port 6, General Purpose Input/Output
U1C1_DOUT O3 ADCx_REQT I RyE RxDC2E ESR1_6 13 P6.2 EMUX2 T6OUT U1C1_SCLK OUT U1C1_DX1C 15 16 P15.0 ADC1_CH0 P15.2 ADC1_CH2 T5INA 17 P15.4 ADC1_CH4 T6INA I I O1 O2 O3 I I I I I I I I I
O0 / I DA/A Bit 2 of Port 6, General Purpose Input/Output
Data Sheet
18
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 18 P15.5 ADC1_CH5 T6EUDA 19 20 21 22 23 P15.6 ADC1_CH6 Pin Definitions and Functions (cont'd) Ctrl. I I I I I I I I I I I I I I I I I I I I Type Function In/A In/A In/A In/A In/A Bit 5 of Port 15, General Purpose Input Analog Input Channel 5 for ADC1 GPT12E Timer T6 External Up/Down Control Input Bit 6 of Port 15, General Purpose Input Analog Input Channel 6 for ADC1
Symbol
VAREF VAGND
P5.0 ADC0_CH0 P5.2 ADC0_CH2 TDI_A
PS/A Reference Voltage for A/D Converters ADC0/1 PS/A Reference Ground for A/D Converters ADC0/1 In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A Bit 0 of Port 5, General Purpose Input Analog Input Channel 0 for ADC0 Bit 2 of Port 5, General Purpose Input Analog Input Channel 2 for ADC0 JTAG Test Data Input Bit 3 of Port 5, General Purpose Input Analog Input Channel 3 for ADC0 GPT12E Timer T3 Count/Gate Input Bit 4 of Port 5, General Purpose Input Analog Input Channel 4 for ADC0 GPT12E Timer T3 External Up/Down Control Input JTAG Test Mode Selection Input Bit 5 of Port 5, General Purpose Input Analog Input Channel 5 for ADC0 External Run Control Input for T12 of CCU60
24
P5.3 ADC0_CH3 T3INA
28
P5.4 ADC0_CH4 T3EUDA TMS_A
29
P5.5 ADC0_CH5 CCU60_T12 HRB
Data Sheet
19
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 30 P5.8 ADC0_CH8 ADC1_CH8 Pin Definitions and Functions (cont'd) Ctrl. I I I Type Function In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A In/A Bit 8 of Port 5, General Purpose Input Analog Input Channel 8 for ADC0 Analog Input Channel 8 for ADC1 External Run Control Input for T12 of CCU60/1 External Run Control Input for T13 of CCU60/1 USIC2 Channel 0 Shift Data Input Bit 9 of Port 5, General Purpose Input Analog Input Channel 9 for ADC0 Analog Input Channel 9 for ADC1 CAPCOM2 Timer T7 Count Input Bit 10 of Port 5, General Purpose Input Analog Input Channel 10 for ADC0 Analog Input Channel 10 for ADC1 OCDS Break Signal Input USIC2 Channel 1 Shift Data Input External Run Control Input for T13 of CCU61 Bit 11 of Port 5, General Purpose Input Analog Input Channel 11 for ADC0 Analog Input Channel 11 for ADC1 Bit 13 of Port 5, General Purpose Input Analog Input Channel 13 for ADC0 Bit 15 of Port 5, General Purpose Input Analog Input Channel 15 for ADC0 CAN Node 2 Receive Data Input
Symbol
CCU6x_T12H I RC CCU6x_T13H I RC U2C0_DX0F 31 P5.9 ADC0_CH9 ADC1_CH9 CC2_T7IN 32 P5.10 ADC0_CH10 ADC1_CH10 BRKIN_A U2C1_DX0F CCU61_T13 HRA 33 P5.11 ADC0_CH11 ADC1_CH11 34 35 P5.13 ADC0_CH13 P5.15 ADC0_CH15 RxDC2F I I I I I I I I I I I I I I I I I I I
Data Sheet
20
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 36 P2.12 U0C0_SELO 4 U0C1_SELO 3 TXDC2 READY 37 P2.11 U0C0_SELO 2 U0C1_SELO 2 BHE/WRH Pin Definitions and Functions (cont'd) Ctrl. O1 O2 O3 IH O1 O2 OH Type Function Bit 12 of Port 2, General Purpose Input/Output USIC0 Channel 0 Select/Control 4 Output USIC0 Channel 1 Select/Control 3 Output CAN Node 2 Transmit Data Output External Bus Interface READY Input Bit 11 of Port 2, General Purpose Input/Output USIC0 Channel 0 Select/Control 2 Output USIC0 Channel 1 Select/Control 2 Output External Bus Interf. High-Byte Control Output Can operate either as Byte High Enable (BHE) or as Write strobe for High Byte (WRH). Bit 0 of Port 2, General Purpose Input/Output External Bus Interface Address/Data Line 13 CAN Node 0 Receive Data Input GPT12E Timer T5 Count/Gate Input Bit 1 of Port 2, General Purpose Input/Output CAN Node 0 Transmit Data Output External Bus Interface Address/Data Line 14 GPT12E Timer T5 External Up/Down Control Input ESR1 Trigger Input 5 Bit 2 of Port 2, General Purpose Input/Output CAN Node 1 Transmit Data Output External Bus Interface Address/Data Line 15 ESR2 Trigger Input 5 St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
O0 / I St/B
39
P2.0 AD13 RxDC0C T5INB
O0 / I St/B OH / IH I I O1 OH / IH I I O1 OH / IH I St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B
40
P2.1 TxDC0 AD14 T5EUDB ESR1_5
O0 / I St/B
41
P2.2 TxDC1 AD15 ESR2_5
O0 / I St/B
Data Sheet
21
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 42 P4.0 CC2_CC24 CS0 43 P2.3 CC2_CC16 A16 ESR2_0 U0C0_DX0E U0C1_DX0D RxDC0A 44 P4.1 TxDC2 CC2_CC25 CS1 T4EUDB ESR1_8 45 P2.4 TxDC0 CC2_CC17 A17 ESR1_0 U0C0_DX0F RxDC1A Pin Definitions and Functions (cont'd) Ctrl. Type Function Bit 0 of Port 4, General Purpose Input/Output CAPCOM2 CC24IO Capture Inp./ Compare Out. External Bus Interface Chip Select 0 Output Bit 3 of Port 2, General Purpose Input/Output USIC0 Channel 0 Shift Data Output CAPCOM2 CC16IO Capture Inp./ Compare Out. External Bus Interface Address Line 16 ESR2 Trigger Input 0 USIC0 Channel 0 Shift Data Input USIC0 Channel 1 Shift Data Input CAN Node 0 Receive Data Input Bit 1 of Port 4, General Purpose Input/Output CAN Node 2 Transmit Data Output CAPCOM2 CC25IO Capture Inp./ Compare Out. External Bus Interface Chip Select 1 Output GPT12E Timer T4 External Up/Down Control Input ESR1 Trigger Input 8 Bit 4 of Port 2, General Purpose Input/Output USIC0 Channel 1 Shift Data Output CAN Node 0 Transmit Data Output CAPCOM2 CC17IO Capture Inp./ Compare Out. External Bus Interface Address Line 17 ESR1 Trigger Input 0 USIC0 Channel 0 Shift Data Input CAN Node 1 Receive Data Input O0 / I St/B O3 / I St/B OH St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B O3 / I St/B OH I I I I O2 OH I I
Symbol
U0C0_DOUT O1
O0 / I St/B O3 / I St/B
O0 / I St/B O2 OH I I I
U0C1_DOUT O1
O3 / I St/B
Data Sheet
22
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 46 P2.5 U0C0_SCLK OUT TxDC0 CC2_CC18 A18 U0C0_DX1D ESR1_10 47 P4.2 TxDC2 CC2_CC26 CS2 T2INA 48 P2.6 U0C0_SELO 0 U0C1_SELO 1 CC2_CC19 A19 U0C0_DX2D RxDC0D ESR2_6 49 P4.3 CC2_CC27 CS3 RxDC2A T2EUDA Pin Definitions and Functions (cont'd) Ctrl. O1 O2 OH I I O2 OH I O1 O2 Type Function Bit 5 of Port 2, General Purpose Input/Output USIC0 Channel 0 Shift Clock Output CAN Node 0 Transmit Data Output CAPCOM2 CC18IO Capture Inp./ Compare Out. External Bus Interface Address Line 18 USIC0 Channel 0 Shift Clock Input ESR1 Trigger Input 10 Bit 2 of Port 4, General Purpose Input/Output CAN Node 2 Transmit Data Output CAPCOM2 CC26IO Capture Inp./ Compare Out. External Bus Interface Chip Select 2 Output GPT12E Timer T2 Count/Gate Input Bit 6 of Port 2, General Purpose Input/Output USIC0 Channel 0 Select/Control 0 Output USIC0 Channel 1 Select/Control 1 Output CAPCOM2 CC19IO Capture Inp./ Compare Out. External Bus Interface Address Line 19 USIC0 Channel 0 Shift Control Input CAN Node 0 Receive Data Input ESR2 Trigger Input 6 Bit 3 of Port 4, General Purpose Input/Output USIC0 Channel 1 Shift Data Output CAPCOM2 CC27IO Capture Inp./ Compare Out. External Bus Interface Chip Select 3 Output CAN Node 2 Receive Data Input GPT12E Timer T2 External Up/Down Control Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
O3 / I St/B
O0 / I St/B O3 / I St/B
O0 / I St/B
O3 / I St/B OH I I I St/B St/B St/B St/B St/B St/B St/B St/B
O0 / I St/B O3 / I St/B OH I I
U0C1_DOUT O1
Data Sheet
23
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 53 P0.0 CCU61_CC6 0 A0 U1C0_DX0A CCU61_CC6 0INA ESR1_11 54 P2.7 U0C1_SELO 0 U0C0_SELO 1 CC2_CC20 A20 U0C1_DX2C RxDC1C ESR2_7 55 P0.1 TxDC0 CCU61_CC6 1 A1 U1C0_DX0B CCU61_CC6 1INA U1C0_DX1A Pin Definitions and Functions (cont'd) Ctrl. Type Function Bit 0 of Port 0, General Purpose Input/Output USIC1 Channel 0 Shift Data Output CCU61 Channel 0 IOutput External Bus Interface Address Line 0 USIC1 Channel 0 Shift Data Input CCU61 Channel 0 Input ESR1 Trigger Input 11 Bit 7 of Port 2, General Purpose Input/Output USIC0 Channel 1 Select/Control 0 Output USIC0 Channel 0 Select/Control 1 Output CAPCOM2 CC20IO Capture Inp./ Compare Out. External Bus Interface Address Line 20 USIC0 Channel 1 Shift Control Input CAN Node 1 Receive Data Input ESR2 Trigger Input 7 Bit 1 of Port 0, General Purpose Input/Output USIC1 Channel 0 Shift Data Output CAN Node 0 Transmit Data Output CCU61 Channel 1 Output External Bus Interface Address Line 1 USIC1 Channel 0 Shift Data Input CCU61 Channel 1 Input USIC1 Channel 0 Shift Clock Input St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B O3 OH I I I O1 O2
Symbol
U1C0_DOUT O1
O0 / I St/B
O3 / I St/B OH I I I St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B
O0 / I St/B O2 O3 OH I I I
U1C0_DOUT O1
Data Sheet
24
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 56 P2.8 U0C1_SCLK OUT EXTCLK CC2_CC21 A21 U0C1_DX1D 57 P2.9 TxDC1 CC2_CC22 A22 CLKIN1 TCK_A Pin Definitions and Functions (cont'd) Ctrl. O1 O2 Type Function DP/B USIC0 Channel 1 Shift Clock Output DP/B Programmable Clock Signal Output
1)
Symbol
O0 / I DP/B Bit 8 of Port 2, General Purpose Input/Output
O3 / I DP/B CAPCOM2 CC21IO Capture Inp./ Compare Out. OH I DP/B External Bus Interface Address Line 21 DP/B USIC0 Channel 1 Shift Clock Input Bit 9 of Port 2, General Purpose Input/Output USIC0 Channel 1 Shift Data Output CAN Node 1 Transmit Data Output CAPCOM2 CC22IO Capture Inp./ Compare Out. External Bus Interface Address Line 22 Clock Signal Input 1 DAP0/JTAG Clock Input If JTAG pos. A is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. If DAP pos. 0 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. Bit 2 of Port 0, General Purpose Input/Output USIC1 Channel 0 Shift Clock Output CAN Node 0 Transmit Data Output CCU61 Channel 2 Output External Bus Interface Address Line 2 USIC1 Channel 0 Shift Clock Input CCU61 Channel 2 Input St/B St/B St/B St/B St/B
O0 / I St/B O2 OH I IH
U0C1_DOUT O1
O3 / I St/B
58
P0.2 U1C0_SCLK OUT TxDC0 CCU61_CC6 2 A2 U1C0_DX1B CCU61_CC6 2INA
O0 / I St/B O1 O2 O3 OH I I St/B St/B St/B St/B St/B St/B
Data Sheet
25
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 59 P10.0 CCU60_CC6 0 AD0 CCU60_CC6 0INA ESR1_2 U0C0_DX0A U0C1_DX0A 60 P10.1 CCU60_CC6 1 AD1 CCU60_CC6 1INA U0C0_DX1A U0C0_DX0B 61 P0.3 U1C0_SELO 0 U1C1_SELO 1 Pin Definitions and Functions (cont'd) Ctrl. Type Function Bit 0 of Port 10, General Purpose Input/Output USIC0 Channel 1 Shift Data Output CCU60 Channel 0 Output External Bus Interface Address/Data Line 0 CCU60 Channel 0 Input ESR1 Trigger Input 2 USIC0 Channel 0 Shift Data Input USIC0 Channel 1 Shift Data Input Bit 1 of Port 10, General Purpose Input/Output USIC0 Channel 0 Shift Data Output CCU60 Channel 1 Output External Bus Interface Address/Data Line 1 CCU60 Channel 1 Input USIC0 Channel 0 Shift Clock Input USIC0 Channel 0 Shift Data Input Bit 3 of Port 0, General Purpose Input/Output USIC1 Channel 0 Select/Control 0 Output USIC1 Channel 1 Select/Control 1 Output CCU61 Channel 0 Output External Bus Interface Address Line 3 USIC1 Channel 0 Shift Control Input CAN Node 0 Receive Data Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B O2 OH / IH I I I I
Symbol
U0C1_DOUT O1
O0 / I St/B O2 OH / IH I I I O1 O2
U0C0_DOUT O1
O0 / I St/B
CCU61_COU O3 T60 A3 U1C0_DX2A RxDC0B OH I I
Data Sheet
26
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 62 P10.2 U0C0_SCLK OUT CCU60_CC6 2 AD2 CCU60_CC6 2INA U0C0_DX1B 63 P0.4 U1C1_SELO 0 U1C0_SELO 1 Pin Definitions and Functions (cont'd) Ctrl. O1 O2 OH / IH I I O1 O2 Type Function Bit 2 of Port 10, General Purpose Input/Output USIC0 Channel 0 Shift Clock Output CCU60 Channel 2 Output External Bus Interface Address/Data Line 2 CCU60 Channel 2 Input USIC0 Channel 0 Shift Clock Input Bit 4 of Port 0, General Purpose Input/Output USIC1 Channel 1 Select/Control 0 Output USIC1 Channel 0 Select/Control 1 Output CCU61 Channel 1 Output External Bus Interface Address Line 4 USIC1 Channel 1 Shift Control Input CAN Node 1 Receive Data Input ESR2 Trigger Input 8 Bit 13 of Port 2, General Purpose Input/Output USIC2 Channel 1 Select/Control 2 Output CAN Node 2 Receive Data Input Bit 10 of Port 2, General Purpose Input/Output USIC0 Channel 1 Shift Data Output USIC0 Channel 0 Select/Control 3 Output CAPCOM2 CC23IO Capture Inp./ Compare Out. External Bus Interface Address Line 23 USIC0 Channel 1 Shift Data Input GPT12E Register CAPREL Capture Input
27 V1.2, 2010-04
Symbol
O0 / I St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B
O0 / I St/B
CCU61_COU O3 T61 A4 U1C1_DX2A RxDC1B ESR2_8 65 P2.13 U2C1_SELO 2 RxDC2D 66 P2.10 U0C0_SELO 3 CC2_CC23 A23 U0C1_DX0E CAPINA
Data Sheet
OH I I I O1 I
O0 / I St/B
O0 / I St/B O2
U0C1_DOUT O1
O3 / I St/B OH I I St/B St/B St/B
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 67 P10.3 Pin Definitions and Functions (cont'd) Ctrl. Type Function Bit 3 of Port 10, General Purpose Input/Output CCU60 Channel 0 Output External Bus Interface Address/Data Line 3 USIC0 Channel 0 Shift Control Input USIC0 Channel 1 Shift Control Input Bit 5 of Port 0, General Purpose Input/Output USIC1 Channel 1 Shift Clock Output USIC1 Channel 0 Select/Control 2 Output CCU61 Channel 2 Output External Bus Interface Address Line 5 USIC1 Channel 1 Shift Clock Input USIC1 Channel 0 Shift Clock Input Bit 4 of Port 10, General Purpose Input/Output USIC0 Channel 0 Select/Control 3 Output CCU60 Channel 1 Output External Bus Interface Address/Data Line 4 USIC0 Channel 0 Shift Control Input USIC0 Channel 1 Shift Control Input ESR1 Trigger Input 9 St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
CCU60_COU O2 T60 AD3 U0C0_DX2A U0C1_DX2A 68 P0.5 U1C1_SCLK OUT U1C0_SELO 2 OH / IH I I O1 O2
O0 / I St/B
CCU61_COU O3 T62 A5 U1C1_DX1A U1C0_DX1C 69 P10.4 U0C0_SELO 3 OH I I O1
O0 / I St/B
CCU60_COU O2 T61 AD4 U0C0_DX2B U0C1_DX2B ESR1_9 OH / IH I I I
Data Sheet
28
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 70 P10.5 U0C1_SCLK OUT Pin Definitions and Functions (cont'd) Ctrl. O1 Type Function Bit 5 of Port 10, General Purpose Input/Output USIC0 Channel 1 Shift Clock Output CCU60 Channel 2 Output USIC2 Channel 0 Shift Data Output External Bus Interface Address/Data Line 5 USIC0 Channel 1 Shift Clock Input Bit 6 of Port 0, General Purpose Input/Output USIC1 Channel 1 Shift Data Output CAN Node 1 Transmit Data Output CCU61 Channel 3 Output External Bus Interface Address Line 6 USIC1 Channel 1 Shift Data Input CCU61 Emergency Trap Input USIC1 Channel 1 Shift Clock Input Bit 6 of Port 10, General Purpose Input/Output USIC0 Channel 0 Shift Data Output USIC1 Channel 0 Select/Control 0 Output External Bus Interface Address/Data Line 6 USIC0 Channel 0 Shift Data Input USIC1 Channel 0 Shift Control Input CCU60 Emergency Trap Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
CCU60_COU O2 T62 U2C0_DOUT O3 AD5 U0C1_DX1B 71 P0.6 TxDC1 OH / IH I
O0 / I St/B O2
U1C1_DOUT O1 CCU61_COU O3 T63 A6 U1C1_DX0A CCU61_CTR APA U1C1_DX1B 72 P10.6 U1C0_SELO 0 AD6 U0C0_DX0C U1C0_DX2D CCU60_CTR APA OH I I I
O0 / I St/B O3 OH / IH I I I
U0C0_DOUT O1
Data Sheet
29
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 73 P10.7 Pin Definitions and Functions (cont'd) Ctrl. Type Function Bit 7 of Port 10, General Purpose Input/Output USIC0 Channel 1 Shift Data Output CCU60 Channel 3 Output External Bus Interface Address/Data Line 7 USIC0 Channel 1 Shift Data Input CCU60 Position Input 0 GPT12E Timer T4 Count/Gate Input Bit 7 of Port 0, General Purpose Input/Output USIC1 Channel 1 Shift Data Output USIC1 Channel 0 Select/Control 3 Output External Bus Interface Address Line 7 USIC1 Channel 1 Shift Data Input CCU61 Emergency Trap Input Bit 0 of Port 1, General Purpose Input/Output USIC1 Channel 0 Master Clock Output USIC1 Channel 0 Select/Control 4 Output External Bus Interface Address Line 8 ESR1 Trigger Input 3 GPT12E Timer T6 Count/Gate Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
U0C1_DOUT O1 CCU60_COU O2 T63 AD7 U0C1_DX0B OH / IH I
CCU60_CCP I OS0A T4INB 74 P0.7 U1C0_SELO 3 A7 U1C1_DX0B CCU61_CTR APB 78 P1.0 U1C0_MCLK OUT U1C0_SELO 4 A8 ESR1_3 T6INB I
O0 / I St/B O2 OH I I
U1C1_DOUT O1
O0 / I St/B O1 O2 OH I I St/B St/B St/B St/B St/B
Data Sheet
30
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 79 P10.8 U0C0_MCLK OUT U0C1_SELO 0 AD8 Pin Definitions and Functions (cont'd) Ctrl. O1 O2 Type Function Bit 8 of Port 10, General Purpose Input/Output USIC0 Channel 0 Master Clock Output USIC0 Channel 1 Select/Control 0 Output USIC2 Channel 1 Shift Data Output External Bus Interface Address/Data Line 8 CCU60 Position Input 1 USIC0 Channel 0 Shift Clock Input OCDS Break Signal Input GPT12E Timer T3 External Up/Down Control Input Bit 9 of Port 10, General Purpose Input/Output USIC0 Channel 0 Select/Control 4 Output USIC0 Channel 1 Master Clock Output External Bus Interface Address/Data Line 9 CCU60 Position Input 2 DAP0/JTAG Clock Input If JTAG pos. B is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. If DAP pos. 1 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. GPT12E Timer T3 Count/Gate Input St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
U2C1_DOUT O3 OH / IH
CCU60_CCP I OS1A U0C0_DX1C BRKIN_B T3EUDB 80 P10.9 U0C0_SELO 4 U0C1_MCLK OUT AD9 I I I
O0 / I St/B O1 O2 OH / IH St/B St/B St/B St/B St/B
CCU60_CCP I OS2A TCK_B IH
T3INB
I
St/B
Data Sheet
31
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 81 P1.1 U1C0_SELO 5 A9 ESR2_3 U2C1_DX0C 82 P10.10 U0C0_SELO 0 Pin Definitions and Functions (cont'd) Ctrl. O2 Type Function Bit 1 of Port 1, General Purpose Input/Output USIC1 Channel 0 Select/Control 5 Output USIC2 Channel 1 Shift Data Output External Bus Interface Address Line 9 ESR2 Trigger Input 3 USIC2 Channel 1 Shift Data Input Bit 10 of Port 10, General Purpose Input/Output USIC0 Channel 0 Select/Control 0 Output CCU60 Channel 3 Output External Bus Interface Address/Data Line 10 USIC0 Channel 0 Shift Control Input USIC0 Channel 1 Shift Clock Input JTAG Test Data Input If JTAG pos. B is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. Bit 11 of Port 10, General Purpose Input/Output USIC1 Channel 0 Shift Clock Output OCDS Break Signal Output External Bus Interface Address/Data Line 11 USIC1 Channel 0 Shift Clock Input CAN Node 2 Receive Data Input JTAG Test Mode Selection Input If JTAG pos. B is selected during start-up, an internal pull-up device will hold this pin high when nothing is driving it. St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
U2C1_DOUT O3 OH I I O1
O0 / I St/B
CCU60_COU O2 T63 AD10 U0C0_DX2C U0C1_DX1A TDI_B OH / IH I I IH
83
P10.11 U1C0_SCLK OUT BRKOUT AD11 U1C0_DX1D RxDC2B TMS_B
O0 / I St/B O1 O2 OH / IH I I IH St/B St/B St/B St/B St/B St/B
Data Sheet
32
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 84 P1.2 U1C0_SELO 6 U2C1_SCLK OUT A10 ESR1_4 CCU61_T12 HRB U2C1_DX0D U2C1_DX1C 85 P10.12 TxDC2 TDO_B Pin Definitions and Functions (cont'd) Ctrl. O2 O3 OH I I I I Type Function Bit 2 of Port 1, General Purpose Input/Output USIC1 Channel 0 Select/Control 6 Output USIC2 Channel 1 Shift Clock Output External Bus Interface Address Line 10 ESR1 Trigger Input 4 External Run Control Input for T12 of CCU61 USIC2 Channel 1 Shift Data Input USIC2 Channel 1 Shift Clock Input Bit 12 of Port 10, General Purpose Input/Output USIC1 Channel 0 Shift Data Output CAN Node 2 Transmit Data Output JTAG Test Data Output / DAP1 Input/Output If DAP pos. 1 is selected during start-up, an internal pull-down device will hold this pin low when nothing is driving it. External Bus Interface Address/Data Line 12 USIC1 Channel 0 Shift Data Input USIC1 Channel 0 Shift Clock Input Bit 13 of Port 10, General Purpose Input/Output USIC1 Channel 0 Shift Data Output USIC1 Channel 0 Select/Control 3 Output External Bus Interface Write Strobe Output Active for each external write access, when WR, active for ext. writes to the low byte, when WRL. USIC1 Channel 0 Shift Data Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
O0 / I St/B O2 OH / IH
U1C0_DOUT O1
AD12 U1C0_DX0C U1C0_DX1E 86 P10.13 U1C0_SELO 3 WR/WRL
OH / IH I I
St/B St/B St/B St/B St/B St/B
O0 / I St/B O3 OH
U1C0_DOUT O1
U1C0_DX0D
I
St/B
Data Sheet
33
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 87 P1.3 U1C0_SELO 7 U2C0_SELO 4 A11 ESR2_4 89 P10.14 U1C0_SELO 1 RD ESR2_2 U0C1_DX0C 90 P1.4 U1C1_SELO 4 U2C0_SELO 5 A12 U2C0_DX2B 91 P10.15 U1C0_SELO 2 Pin Definitions and Functions (cont'd) Ctrl. O2 O3 OH I O1 Type Function Bit 3 of Port 1, General Purpose Input/Output USIC1 Channel 0 Select/Control 7 Output USIC2 Channel 0 Select/Control 4 Output External Bus Interface Address Line 11 ESR2 Trigger Input 4 Bit 14 of Port 10, General Purpose Input/Output USIC1 Channel 0 Select/Control 1 Output USIC0 Channel 1 Shift Data Output External Bus Interface Read Strobe Output ESR2 Trigger Input 2 USIC0 Channel 1 Shift Data Input Bit 4 of Port 1, General Purpose Input/Output USIC1 Channel 1 Select/Control 4 Output USIC2 Channel 0 Select/Control 5 Output External Bus Interface Address Line 12 USIC2 Channel 0 Shift Control Input Bit 15 of Port 10, General Purpose Input/Output USIC1 Channel 0 Select/Control 2 Output USIC0 Channel 1 Shift Data Output USIC1 Channel 0 Shift Data Output External Bus Interf. Addr. Latch Enable Output USIC0 Channel 1 Shift Clock Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
O0 / I St/B
U0C1_DOUT O2 OH I I O2 O3 OH I O1
O0 / I St/B
O0 / I St/B
U0C1_DOUT O2 U1C0_DOUT O3 ALE U0C1_DX1C OH I
Data Sheet
34
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 92 P1.5 U1C1_SELO 3 BRKOUT A13 U2C0_DX0C 93 P1.6 U1C1_SELO 2 A14 U2C0_DX0D 94 P1.7 U1C1_MCLK OUT U2C0_SCLK OUT A15 U2C0_DX1C 95 96 XTAL2 XTAL1 Pin Definitions and Functions (cont'd) Ctrl. O2 O3 OH I O2 Type Function Bit 5 of Port 1, General Purpose Input/Output USIC1 Channel 1 Select/Control 3 Output OCDS Break Signal Output External Bus Interface Address Line 13 USIC2 Channel 0 Shift Data Input Bit 6 of Port 1, General Purpose Input/Output USIC1 Channel 1 Select/Control 2 Output USIC2 Channel 0 Shift Data Output External Bus Interface Address Line 14 USIC2 Channel 0 Shift Data Input Bit 7 of Port 1, General Purpose Input/Output USIC1 Channel 1 Master Clock Output USIC2 Channel 0 Shift Clock Output External Bus Interface Address Line 15 USIC2 Channel 0 Shift Clock Input St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B St/B O0 / I St/B
Symbol
O0 / I St/B
U2C0_DOUT O3 OH I O2 O3 OH I O I
O0 / I St/B
Sp/M Crystal Oscillator Amplifier Output Sp/M Crystal Oscillator Amplifier Input To clock the device from an external source, drive XTAL1, while leaving XTAL2 unconnected. Voltages on XTAL1 must comply to the core supply voltage VDDIM. St/B In/B ESR2 Trigger Input 9 Power On Reset Input A low level at this pin resets the XC236xB completely. A spike filter suppresses input pulses <10 ns. Input pulses >100 ns safely pass the filter. The minimum duration for a safe recognition should be 120 ns. An internal pull-up device will hold this pin high when nothing is driving it.
35 V1.2, 2010-04
ESR2_9 97 PORST
I I
Data Sheet
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 98 ESR1 Pin Definitions and Functions (cont'd) Ctrl. Type Function External Service Request 1 After power-up, an internal weak pull-up device holds this pin high when nothing is driving it. CAN Node 0 Receive Data Input USIC1 Channel 0 Shift Data Input USIC1 Channel 0 Shift Control Input USIC1 Channel 1 Shift Data Input USIC1 Channel 1 Shift Control Input USIC2 Channel 1 Shift Control Input External Service Request 0 After power-up, ESR0 operates as open-drain bidirectional reset with a weak pull-up. USIC1 Channel 0 Shift Data Input USIC1 Channel 0 Shift Control Input O0 / I St/B
Symbol
RxDC0E U1C0_DX0F U1C0_DX2C U1C1_DX0C U1C1_DX2B U2C1_DX2C 99 ESR0
I I I I I I
St/B St/B St/B St/B St/B St/B
O0 / I St/B
U1C0_DX0E U1C0_DX2B 10
I I -
St/B St/B
VDDIM
PS/M Digital Core Supply Voltage for Domain M Decouple with a ceramic capacitor, see Data Sheet for details. PS/1 Digital Core Supply Voltage for Domain 1 Decouple with a ceramic capacitor, see Data Sheet for details. All VDDI1 pins must be connected to each other. PS/A Digital Pad Supply Voltage for Domain A Connect decoupling capacitors to adjacent VDDP/VSS pin pairs as close as possible to the pins. Note: The A/D_Converters and ports P5, P6 and P15 are fed from supply voltage VDDPA.
38, 64, 88 14
VDDI1
-
VDDPA
-
Data Sheet
36
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information Table 6 Pin 2, 25, 27, 50, 52, 75, 77, 100 1, 26, 51, 76 Pin Definitions and Functions (cont'd) Ctrl. Type Function PS/B Digital Pad Supply Voltage for Domain B Connect decoupling capacitors to adjacent VDDP/VSS pin pairs as close as possible to the pins. Note: The on-chip voltage regulators and all ports except P5, P6 and P15 are fed from supply voltage VDDPB.
Symbol
VDDPB
VSS
-
PS/-- Digital Ground All VSS pins must be connected to the ground-line or ground-plane. Note: Also the exposed pad is connected internally to VSS. To improve the EMC behavior, it is recommended to connect the exposed pad to the board ground. For thermal aspects, please refer to the Data Sheet. Board layout examples are given in an application note.
1) To generate the reference clock output for bus timing measurement, fSYS must be selected as source for EXTCLK and P2.8 must be selected as output pin. Also the high-speed clock pad must be enabled. This configuration is referred to as reference clock output signal CLKOUT.
Data Sheet
37
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
General Device Information
2.2
Identification Registers
The identification registers describe the current version of the XC236xB and of its modules. Table 7 Short Name SCU_IDMANUF SCU_IDCHIP SCU_IDMEM SCU_IDPROG JTAG_ID XC236xB Identification Registers Value 1820H 3001H 3002H 304FH 1313H 0018'B083H 1018'B083H Address 00'F07EH 00'F07CH 00'F07CH 00'F07AH 00'F078H ----marking EES-AA or ES-AA marking AA marking EES-AA or ES-AA marking AA Notes
Data Sheet
38
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3
Functional Description
The architecture of the XC236xB combines advantages of RISC, CISC, and DSP processors with an advanced peripheral subsystem in a well-balanced design. On-chip memory blocks allow the design of compact systems-on-silicon with maximum performance suited for computing, control, and communication. The on-chip memory blocks (program code memory and SRAM, dual-port RAM, data SRAM) and the generic peripherals are connected to the CPU by separate high-speed buses. Another bus, the LXBus, connects additional on-chip resources and external resources (see Figure 4). This bus structure enhances overall system performance by enabling the concurrent operation of several subsystems of the XC236xB. The block diagram gives an overview of the on-chip components and the advanced internal bus structure of the XC236xB.
PSRAM
DPRAM
DSRAM
OCDS Debug Support EBC LXBus Control External Bus Control MCHK LXBus Multi CAN
IMB
PMU
CPU MAC Unit DMU
Flash Memory
System Functions
Clock, Reset, Power Control, StandBy RAM
WDT MPU Interrupt & PEC RTC Interrupt Bus
ADC0 ADC1 Module Module
GPT
CC2 Module
CCU6x Modules
Peripheral Data Bus
USICx Modules
8-/10Bit
8-/10Bit
5 Timers
16 Chan.
3+1 Chan. each
2 Chan. each
Analog and Digital General Purpose IO (GPIO) Ports
MC_N-SERIES_BLOCKDIAGRAM
Figure 4
Data Sheet
Block Diagram
39 V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.1
Memory Subsystem and Organization
The memory space of the XC236xB is configured in the von Neumann architecture. In this architecture all internal and external resources, including code memory, data memory, registers and I/O ports, are organized in the same linear address space. Table 8 XC236xB Memory Map 1) Start Loc. End Loc. FF'FF00H F0'0000H E8'4000H E8'0000H E0'4000H E0'0000H C5'0000H C4'0000H C0'0000H 40'0000H 21'0000H 20'BC00H FF'FFFFH FF'FEFFH EF'FFFFH E8'3FFFH E7'FFFFH E0'3FFFH DF'FFFFH C4'FFFFH C3'FFFFH BF'FFFFH 3F'FFFFH 20'FFFFH 20'BBFFH 20'AFFFH 20'7FFFH 20'57FFH 20'7FFFH 20'3FFFH 1F'FFFFH 00'FFFFH 00'FDFFH 00'F5FFH 00'F1FFH 00'EFFFH 00'DFFFH
40
Address Area IMB register space Reserved Reserved for EPSRAM Emulated PSRAM Reserved for PSRAM PSRAM Reserved for Flash Flash 1 Flash 0 External memory area External IO area4) Reserved
Area Size2) 256 Bytes < 1 Mbyte 496 Kbytes up to 16 Kbytes 496 Kbytes up to 16 Kbytes 1,728 Kbytes 64 Kbytes 256 Kbytes3) 8 Mbytes 1,984 Kbytes 17 Kbytes 3 Kbytes 12 Kbytes 10 Kbytes 6 Kbytes 6 Kbytes 16 Kbytes 1984 Kbytes 0.5 Kbytes 2 Kbytes 1 Kbytes 0.5 Kbytes 4 Kbytes 16 Kbytes
Notes Minus IMB registers Mirrors EPSRAM With Flash timing Mirrors PSRAM Program SRAM
Minus res. seg.
USIC0-2 alternate regs. 20'B000H MultiCAN alternate regs. 20'8000H Reserved USIC0-2 registers Reserved MultiCAN registers External memory area SFR area Reserved for DPRAM ESFR area XSFR area Data SRAM (DSRAM)
Data Sheet
Accessed via EBC Accessed via EBC Accessed via EBC Accessed via EBC
20'5800H 20'4000H 20'6800H 20'0000H 01'0000H 00'FE00H 00'F200H 00'F000H 00'E000H 00'A000H
Dualport RAM (DPRAM) 00'F600H
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Table 8 XC236xB Memory Map (cont'd)1) Start Loc. End Loc. 00'8000H 00'0000H 00'9FFFH 00'7FFFH Area Size2) 8 Kbytes 32 Kbytes Notes
Address Area Reserved for DSRAM External memory area
1) Accesses to the shaded areas are reserved. In devices with external bus interface these accesses generate external bus accesses. 2) The areas marked with "<" are slightly smaller than indicated, see column "Notes". 3) The uppermost 4-Kbyte sector of the first Flash segment is reserved for internal use (C0'F000H to C0'FFFFH). 4) Several pipeline optimizations are not active within the external IO area. This is necessary to control external peripherals properly.
This common memory space consists of 16 Mbytes organized as 256 segments of 64 Kbytes; each segment contains four data pages of 16 Kbytes. The entire memory space can be accessed bytewise or wordwise. Portions of the on-chip DPRAM and the register spaces (ESFR/SFR) additionally are directly bit addressable. The internal data memory areas and the Special Function Register areas (SFR and ESFR) are mapped into segment 0, the system segment. The Program Management Unit (PMU) handles all code fetches and, therefore, controls access to the program memories such as Flash memory and PSRAM. The Data Management Unit (DMU) handles all data transfers and, therefore, controls access to the DSRAM and the on-chip peripherals. Both units (PMU and DMU) are connected to the high-speed system bus so that they can exchange data. This is required if operands are read from program memory, code or data is written to the PSRAM, code is fetched from external memory, or data is read from or written to external resources. These include peripherals on the LXBus such as USIC or MultiCAN. The system bus allows concurrent two-way communication for maximum transfer performance. Up to 16 Kbytes of on-chip Program SRAM (PSRAM) are provided to store user code or data. The PSRAM is accessed via the PMU and is optimized for code fetches. A section of the PSRAM with programmable size can be write-protected. Note: The actual size of the PSRAM depends on the quoted device type.
Data Sheet
41
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Up to 16 Kbytes of on-chip Data SRAM (DSRAM) are used for storage of general user data. The DSRAM is accessed via a separate interface and is optimized for data access. Note: The actual size of the DSRAM depends on the quoted device type. 2 Kbytes of on-chip Dual-Port RAM (DPRAM) provide storage for user-defined variables, for the system stack, and for general purpose register banks. A register bank can consist of up to 16 word-wide (R0 to R15) and/or byte-wide (RL0, RH0, ..., RL7, RH7) General Purpose Registers (GPRs). The upper 256 bytes of the DPRAM are directly bit addressable. When used by a GPR, any location in the DPRAM is bit addressable. 8 Kbytes of on-chip Stand-By SRAM (SBRAM) provide storage for system-relevant user data that must be preserved while the major part of the device is powered down. The SBRAM is accessed via a specific interface and is powered in domain M. 1024 bytes (2 x 512 bytes) of the address space are reserved for the Special Function Register areas (SFR space and ESFR space). SFRs are word-wide registers which are used to control and monitor functions of the different on-chip units. Unused SFR addresses are reserved for future members of the XC2000 Family. In order to ensure upward compatibility they should either not be accessed or written with zeros. In order to meet the requirements of designs where more memory is required than is available on chip, up to 12 Mbytes (approximately, see Table 8) of external RAM and/or ROM can be connected to the microcontroller. The External Bus Interface also provides access to external peripherals. The on-chip Flash memory stores code, constant data, and control data. The 320 Kbytes of on-chip Flash memory consist of 1 module of 64 Kbytes (preferably for data storage) and 1 module of 256 Kbytes. Each module is organized in 4-Kbyte sectors. The uppermost 4-Kbyte sector of segment 0 (located in Flash module 0) is used internally to store operation control parameters and protection information. Note: The actual size of the Flash memory depends on the chosen device type. Each sector can be separately write protected1), erased and programmed (in blocks of 128 Bytes). The complete Flash area can be read-protected. A user-defined password sequence temporarily unlocks protected areas. The Flash modules combine 128-bit read access with protected and efficient writing algorithms for programming and erasing. Dynamic error correction provides extremely high read data security for all read access operations. Access to different Flash modules can be executed in parallel. For Flash parameters, please see Section 4.6.
1) To save control bits, sectors are clustered for protection purposes, they remain separate for programming/erasing.
Data Sheet
42
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Memory Content Protection The contents of on-chip memories can be protected against soft errors (induced e.g. by radiation) by activating the parity mechanism or the Error Correction Code (ECC). The parity mechanism can detect a single-bit error and prevent the software from using incorrect data or executing incorrect instructions. The ECC mechanism can detect and automatically correct single-bit errors. This supports the stable operation of the system. It is strongly recommended to activate the ECC mechanism wherever possible because this dramatically increases the robustness of an application against such soft errors.
Data Sheet
43
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.2
External Bus Controller
All external memory access operations are performed by a special on-chip External Bus Controller (EBC). The EBC also controls access to resources connected to the on-chip LXBus (MultiCAN and the USIC modules). The LXBus is an internal representation of the external bus that allows access to integrated peripherals and modules in the same way as to external components. The EBC can be programmed either to Single Chip Mode, when no external memory is required, or to an external bus mode with the following selections1): * * * Address Bus Width with a range of 0 ... 24-bit Data Bus Width 8-bit or 16-bit Bus Operation Multiplexed or Demultiplexed
The bus interface uses Port 10 and Port 2 for addresses and data. In the demultiplexed bus modes, the lower addresses are output separately on Port 0 and Port 1. The number of active segment address lines is selectable, restricting the external address space to 8 Mbytes ... 64 Kbytes. This is required when interface lines shall be assigned to Port 2. External CS signals (address windows plus default) can be generated and output on Port 4 in order to save external glue logic. External modules can be directly connected to the common address/data bus and their individual select lines. Important timing characteristics of the external bus interface are programmable (with registers TCONCSx/FCONCSx) to allow the user to adapt it to a wide range of different types of memories and external peripherals. Access to very slow memories or modules with varying access times is supported by a special `Ready' function. The active level of the control input signal is selectable. In addition, up to four independent address windows may be defined (using registers ADDRSELx) to control access to resources with different bus characteristics. These address windows are arranged hierarchically where window 4 overrides window 3, and window 2 overrides window 1. All accesses to locations not covered by these four address windows are controlled by TCONCS0/FCONCS0. The currently active window can generate a chip select signal. The external bus timing is based on the rising edge of the reference clock output CLKOUT. The external bus protocol is compatible with that of the standard C166 Family.
1) Bus modes are switched dynamically if several address windows with different mode settings are used.
Data Sheet
44
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.3
Central Processing Unit (CPU)
The core of the CPU consists of a 5-stage execution pipeline with a 2-stage instructionfetch pipeline, a 16-bit arithmetic and logic unit (ALU), a 32-bit/40-bit multiply and accumulate unit (MAC), a register-file providing three register banks, and dedicated SFRs. The ALU features a multiply-and-divide unit, a bit-mask generator, and a barrel shifter.
PMU CPU Prefetch Unit Branch Unit FIFO CSP IP VECSEG TFR Injection/ Exception Handler IFU DPP0 DPP1 DPP2 DPP3 SPSEG SP STKOV STKUN CP R15 R15 R14 R15 R14 R14 GPRs GPRs GPRs R1 R1 R0 R1 R0 R0 RF +/MDL ONES ALU DMU Buffer WB
2-Stage Prefetch Pipeline 5-Stage Pipeline
PSRAM Flash/ROM
CPUCON1 CPUCON2
DPRAM
Return Stack QR0 QR1
IPIP
IDX0 IDX1 QX0 QX1
R15 R14 GPRs R1 R0
+/-
+/-
ADU
Division Unit Multiply Unit Bit-Mask-Gen. Barrel-Shifter
Multiply Unit
MRW MCW MSW MAL
MDC PSW MDH ZEROS
+/MAH MAC
DSRAM EBC Peripherals
mca04917_x.vsd
Figure 5
CPU Block Diagram
Data Sheet
45
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description With this hardware most XC236xB instructions are executed in a single machine cycle of 12.5 ns @ 80-MHz CPU clock. For example, shift and rotate instructions are always processed during one machine cycle, no matter how many bits are shifted. Also, multiplication and most MAC instructions execute in one cycle. All multiple-cycle instructions have been optimized so that they can be executed very fast; for example, a 32-/16-bit division is started within 4 cycles while the remaining cycles are executed in the background. Another pipeline optimization, the branch target prediction, eliminates the execution time of branch instructions if the prediction was correct. The CPU has a register context consisting of up to three register banks with 16 wordwide GPRs each at its disposal. One of these register banks is physically allocated within the on-chip DPRAM area. A Context Pointer (CP) register determines the base address of the active register bank accessed by the CPU at any time. The number of these register bank copies is only restricted by the available internal RAM space. For easy parameter passing, a register bank may overlap others. A system stack of up to 32 Kwords is provided for storage of temporary data. The system stack can be allocated to any location within the address space (preferably in the on-chip RAM area); it is accessed by the CPU with the stack pointer (SP) register. Two separate SFRs, STKOV and STKUN, are implicitly compared with the stack pointer value during each stack access to detect stack overflow or underflow. The high performance of the CPU hardware implementation can be best utilized by the programmer with the highly efficient XC236xB instruction set. This includes the following instruction classes: * * * * * * * * * * * * * Standard Arithmetic Instructions DSP-Oriented Arithmetic Instructions Logical Instructions Boolean Bit Manipulation Instructions Compare and Loop Control Instructions Shift and Rotate Instructions Prioritize Instruction Data Movement Instructions System Stack Instructions Jump and Call Instructions Return Instructions System Control Instructions Miscellaneous Instructions
The basic instruction length is either 2 or 4 bytes. Possible operand types are bits, bytes and words. A variety of direct, indirect or immediate addressing modes are provided to specify the required operands.
Data Sheet
46
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.4
Memory Protection Unit (MPU)
The XC236xB's Memory Protection Unit (MPU) protects user-specified memory areas from unauthorized read, write, or instruction fetch accesses. The MPU can protect the whole address space including the peripheral area. This completes established mechanisms such as the register security mechanism or stack overrun/underrun detection. Four Protection Levels support flexible system programming where operating system, low level drivers, and applications run on separate levels. Each protection level permits different access restrictions for instructions and/or data. Every access is checked (if the MPU is enabled) and an access violating the permission rules will be marked as invalid and leads to a protection trap. A set of protection registers for each protection level specifies the address ranges and the access permissions. Applications requiring more than 4 protection levels can dynamically re-program the protection registers.
3.5
Memory Checker Module (MCHK)
The XC236xB's Memory Checker Module calculates a checksum (fractional polynomial division) on a block of data, often called Cyclic Redundancy Code (CRC). It is based on a 32-bit linear feedback shift register and may, therefore, also be used to generate pseudo-random numbers. The Memory Checker Module is a 16-bit parallel input signature compression circuitry which enables error detection within a block of data stored in memory, registers, or communicated e.g. via serial communication lines. It reduces the probability of error masking due to repeated error patterns by calculating the signature of blocks of data. The polynomial used for operation is configurable, so most of the commonly used polynomials may be used. Also, the block size for generating a CRC result is configurable via a local counter. An interrupt may be generated if testing the current data block reveals an error. An autonomous CRC compare circuitry is included to enable redundant error detection, e.g. to enable higher safety integrity levels. The Memory Checker Module provides enhanced fault detection (beyond parity or ECC) for data and instructions in volatile and non volatile memories. This is especially important for the safety and reliability of embedded systems.
Data Sheet
47
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.6
Interrupt System
The architecture of the XC236xB supports several mechanisms for fast and flexible response to service requests; these can be generated from various sources internal or external to the microcontroller. Any of these interrupt requests can be programmed to be serviced by the Interrupt Controller or by the Peripheral Event Controller (PEC). Using a standard interrupt service the current program execution is suspended and a branch to the interrupt vector table is performed. With the PEC just one cycle is `stolen' from the current CPU activity to perform the PEC service. A PEC service implies a single byte or word data transfer between any two memory locations with an additional increment of either the PEC source pointer, the destination pointer, or both. An individual PEC transfer counter is implicitly decremented for each PEC service except when performing in the continuous transfer mode. When this counter reaches zero, a standard interrupt is performed to the corresponding source-related vector location. PEC services are particularly well suited to supporting the transmission or reception of blocks of data. The XC236xB has eight PEC channels, each with fast interrupt-driven data transfer capabilities. With a minimum interrupt response time of 7/111) CPU clocks, the XC236xB can react quickly to the occurrence of non-deterministic events. Interrupt Nodes and Source Selection The interrupt system provides 96 physical nodes with separate control register containing an interrupt request flag, an interrupt enable flag and an interrupt priority bit field. Most interrupt sources are assigned to a dedicated node. A particular subset of interrupt sources shares a set of nodes. The source selection can be programmed using the interrupt source selection (ISSR) registers. External Request Unit (ERU) A dedicated External Request Unit (ERU) is provided to route and preprocess selected on-chip peripheral and external interrupt requests. The ERU features 4 programmable input channels with event trigger logic (ETL) a routing matrix and 4 output gating units (OGU). The ETL features rising edge, falling edge, or both edges event detection. The OGU combines the detected interrupt events and provides filtering capabilities depending on a programmable pattern match or miss. Trap Processing The XC236xB provides efficient mechanisms to identify and process exceptions or error conditions that arise during run-time, the so-called `Hardware Traps'. A hardware trap causes an immediate system reaction similar to a standard interrupt service (branching
1) Depending if the jump cache is used or not.
Data Sheet
48
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description to a dedicated vector table location). The occurrence of a hardware trap is also indicated by a single bit in the trap flag register (TFR). Unless another higher-priority trap service is in progress, a hardware trap will interrupt any ongoing program execution. In turn, hardware trap services can normally not be interrupted by standard or PEC interrupts. Depending on the package option up to 3 External Service Request (ESR) pins are provided. The ESR unit processes their input values and allows to implement user controlled trap functions (System Requests SR0 and SR1). In this way reset, wakeup and power control can be efficiently realized. Software interrupts are supported by the `TRAP' instruction in combination with an individual trap (interrupt) number. Alternatively to emulate an interrupt by software a program can trigger interrupt requests by writing the Interrupt Request (IR) bit of an interrupt control register.
3.7
On-Chip Debug Support (OCDS)
The On-Chip Debug Support system built into the XC236xB provides a broad range of debug and emulation features. User software running on the XC236xB can be debugged within the target system environment. The OCDS is controlled by an external debugging device via the debug interface. This either consists of the 2-pin Device Access Port (DAP) or of the JTAG port conforming to IEEE-1149. The debug interface can be completed with an optional break interface. The debugger controls the OCDS with a set of dedicated registers accessible via the debug interface (DAP or JTAG). In addition the OCDS system can be controlled by the CPU, e.g. by a monitor program. An injection interface allows the execution of OCDSgenerated instructions by the CPU. Multiple breakpoints can be triggered by on-chip hardware, by software, or by an external trigger input. Single stepping is supported, as is the injection of arbitrary instructions and read/write access to the complete internal address space. A breakpoint trigger can be answered with a CPU halt, a monitor call, a data transfer, or/and the activation of an external signal. Tracing of data can be obtained via the debug interface, or via the external bus interface for increased performance. Tracing of program execution is supported by the XC2000 Family emulation device. With this device the DAP can operate on clock rates of up to 20 MHz. The DAP interface uses two interface signals, the JTAG interface uses four interface signals, to communicate with external circuitry. The debug interface can be amended with two optional break lines.
Data Sheet
49
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.8
Capture/Compare Unit (CC2)
The CAPCOM unit supports generation and control of timing sequences on up to 16 channels with a maximum resolution of one system clock cycle (eight cycles in staggered mode). The CAPCOM unit is typically used to handle high-speed I/O tasks such as pulse and waveform generation, pulse width modulation (PWM), digital to analog (D/A) conversion, software timing, or time recording with respect to external events. Two 16-bit timers with reload registers provide two independent time bases for the capture/compare register array. The input clock for the timers is programmable to several prescaled values of the internal system clock, or may be derived from an overflow/underflow of timer T6 in module GPT2. This provides a wide range of variation for the timer period and resolution and allows precise adjustments to the application specific requirements. In addition, external count inputs allow event scheduling for the capture/compare registers relative to external events. The capture/compare register array contains 16 dual purpose capture/compare registers, each of which may be individually allocated to either CAPCOM timer and programmed for capture or compare function. All registers have each one port pin associated with it which serves as an input pin for triggering the capture function, or as an output pin to indicate the occurrence of a compare event. When a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (`captured') into the capture/compare register in response to an external event at the port pin which is associated with this register. In addition, a specific interrupt request for this capture/compare register is generated. Either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. The contents of all registers which have been selected for one of the five compare modes are continuously compared with the contents of the allocated timers. When a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the selected compare mode. Table 9 Mode 0 Mode 1 Compare Modes Function Interrupt-only compare mode; Several compare interrupts per timer period are possible Pin toggles on each compare match; Several compare events per timer period are possible
Compare Modes
Data Sheet
50
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Table 9 Mode 2 Mode 3 Double Register Mode Single Event Mode Compare Modes (cont'd) Function Interrupt-only compare mode; Only one compare interrupt per timer period is generated Pin set `1' on match; pin reset `0' on compare timer overflow; Only one compare event per timer period is generated Two registers operate on one pin; Pin toggles on each compare match; Several compare events per timer period are possible Generates single edges or pulses; Can be used with any compare mode
Compare Modes
When a capture/compare register has been selected for capture mode, the current contents of the allocated timer will be latched (`captured') into the capture/compare register in response to an external event at the port pin associated with this register. In addition, a specific interrupt request for this capture/compare register is generated. Either a positive, a negative, or both a positive and a negative external signal transition at the pin can be selected as the triggering event. The contents of all registers selected for one of the five compare modes are continuously compared with the contents of the allocated timers. When a match occurs between the timer value and the value in a capture/compare register, specific actions will be taken based on the compare mode selected.
Data Sheet
51
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
Reload Reg . T7REL
fCC
T7IN T6OUF CC16IO CC17IO
T7 Input Control
Timer T7
T7IRQ
CC16IRQ CC17IRQ Mode Control (Capture or Compare) Sixteen 16-bit Capture/ Compare Registers CC31IRQ T8 Input Control
CC31IO
fCC
T6OUF
Timer T8
T8IRQ
Reload Reg . T8REL
MC_CAPCOM2_BLOCKDIAG
Figure 6
CAPCOM Unit Block Diagram
Data Sheet
52
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.9
Capture/Compare Units CCU6x
The XC236xB types feature the CCU60, CCU61 unit(s). CCU6 is a high-resolution capture and compare unit with application-specific modes. It provides inputs to start the timers synchronously, an important feature in devices with several CCU6 modules. The module provides two independent timers (T12, T13), that can be used for PWM generation, especially for AC motor control. Additionally, special control modes for block commutation and multi-phase machines are supported. Timer 12 Features * * * * * * * * * * Three capture/compare channels, where each channel can be used either as a capture or as a compare channel. Supports generation of a three-phase PWM (six outputs, individual signals for highside and low-side switches) 16-bit resolution, maximum count frequency = peripheral clock Dead-time control for each channel to avoid short circuits in the power stage Concurrent update of the required T12/13 registers Center-aligned and edge-aligned PWM can be generated Single-shot mode supported Many interrupt request sources Hysteresis-like control mode Automatic start on a HW event (T12HR, for synchronization purposes)
Timer 13 Features * * * * * * One independent compare channel with one output 16-bit resolution, maximum count frequency = peripheral clock Can be synchronized to T12 Interrupt generation at period match and compare match Single-shot mode supported Automatic start on a HW event (T13HR, for synchronization purposes)
Additional Features * * * * * * * Block commutation for brushless DC drives implemented Position detection via Hall sensor pattern Automatic rotational speed measurement for block commutation Integrated error handling Fast emergency stop without CPU load via external signal (CTRAP) Control modes for multi-channel AC drives Output levels can be selected and adapted to the power stage
Data Sheet
53
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
CCU6 Module Kernel fSYS TxHR T12
com pare
Channel 0 Channel 1 Channel 2
capture
1
1
Deadtime Control
Multichannel Control
output select
Trap Control
1
T13
Channel 3
com pare 1
3
2
2
2
3
trap i nput
1
Input / Output Control
CCPOS0 CCPOS1 CCPOS2
COUT63
COUT60 CC60 COUT61 CC61 COUT62 CC62
Hal l i nput
compa re
compa re
compa re
Interrupts
st art
m c_ccu6_blockdiagram . vsd
Figure 7
CCU6 Block Diagram
Timer T12 can work in capture and/or compare mode for its three channels. The modes can also be combined. Timer T13 can work in compare mode only. The multi-channel control unit generates output patterns that can be modulated by timer T12 and/or timer T13. The modulation sources can be selected and combined for signal modulation.
Data Sheet
54
CTRAP
V1.2, 2010-04
output select
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.10
General Purpose Timer (GPT12E) Unit
The GPT12E unit is a very flexible multifunctional timer/counter structure which can be used for many different timing tasks such as event timing and counting, pulse width and duty cycle measurements, pulse generation, or pulse multiplication. The GPT12E unit incorporates five 16-bit timers organized in two separate modules, GPT1 and GPT2. Each timer in each module may either operate independently in a number of different modes or be concatenated with another timer of the same module. Each of the three timers T2, T3, T4 of module GPT1 can be configured individually for one of four basic modes of operation: Timer, Gated Timer, Counter, and Incremental Interface Mode. In Timer Mode, the input clock for a timer is derived from the system clock and divided by a programmable prescaler. Counter Mode allows timer clocking in reference to external events. Pulse width or duty cycle measurement is supported in Gated Timer Mode, where the operation of a timer is controlled by the `gate' level on an external input pin. For these purposes each timer has one associated port pin (TxIN) which serves as a gate or clock input. The maximum resolution of the timers in module GPT1 is 4 system clock cycles. The counting direction (up/down) for each timer can be programmed by software or altered dynamically by an external signal on a port pin (TxEUD), e.g. to facilitate position tracking. In Incremental Interface Mode the GPT1 timers can be directly connected to the incremental position sensor signals A and B through their respective inputs TxIN and TxEUD. Direction and counting signals are internally derived from these two input signals, so that the contents of the respective timer Tx corresponds to the sensor position. The third position sensor signal TOP0 can be connected to an interrupt input. Timer T3 has an output toggle latch (T3OTL) which changes its state on each timer overflow/underflow. The state of this latch may be output on pin T3OUT e.g. for time out monitoring of external hardware components. It may also be used internally to clock timers T2 and T4 for measuring long time periods with high resolution. In addition to the basic operating modes, T2 and T4 may be configured as reload or capture register for timer T3. A timer used as capture or reload register is stopped. The contents of timer T3 is captured into T2 or T4 in response to a signal at the associated input pin (TxIN). Timer T3 is reloaded with the contents of T2 or T4, triggered either by an external signal or a selectable state transition of its toggle latch T3OTL. When both T2 and T4 are configured to alternately reload T3 on opposite state transitions of T3OTL with the low and high times of a PWM signal, this signal can be continuously generated without software intervention.
Data Sheet
55
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
T3CON.BPS1
fGPT
2n:1
Basic Clock Aux. Timer T2 Interrupt Request (T2IRQ)
T2IN T2EUD
U/D T2 Mode Reload Control Capture
Interrupt Request (T3IRQ) T3 Mode Control
T3IN T3EUD
Core Timer T3 U/D
T3OTL Toggle Latch
T3OUT
Capture T4IN T4EUD T4 Mode Control Reload Aux. Timer T4 U/D Interrupt Request (T4IRQ)
MC_GPT_BLOCK1
Figure 8
Block Diagram of GPT1
Data Sheet
56
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description With its maximum resolution of 2 system clock cycles, the GPT2 module provides precise event control and time measurement. It includes two timers (T5, T6) and a capture/reload register (CAPREL). Both timers can be clocked with an input clock which is derived from the CPU clock via a programmable prescaler or with external signals. The counting direction (up/down) for each timer can be programmed by software or altered dynamically with an external signal on a port pin (TxEUD1)). Concatenation of the timers is supported with the output toggle latch (T6OTL) of timer T6, which changes its state on each timer overflow/underflow. The state of this latch may be used to clock timer T5, and/or it may be output on pin T6OUT. The overflows/underflows of timer T6 can also be used to clock the CAPCOM2 timers and to initiate a reload from the CAPREL register. The CAPREL register can capture the contents of timer T5 based on an external signal transition on the corresponding port pin (CAPIN); timer T5 may optionally be cleared after the capture procedure. This allows the XC236xB to measure absolute time differences or to perform pulse multiplication without software overhead. The capture trigger (timer T5 to CAPREL) can also be generated upon transitions of GPT1 timer T3 inputs T3IN and/or T3EUD. This is especially advantageous when T3 operates in Incremental Interface Mode.
1) Exception: T5EUD is not connected to a pin.
Data Sheet
57
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
T6CON.BPS2
fGPT
2n:1
Basic Clock GPT2 Timer T5 Interrupt Request (T5IRQ)
T5IN T5EUD
T5 Mode Control
U/D Clear
Capture
CAPIN T3IN/ T3EUD
CAPREL Mode Control
GPT2 CAPREL Reload Clear
Interrupt Request (CRIRQ) Interrupt Request (T6IRQ) Toggle FF
T6IN T6EUD
T6 Mode Control
GPT2 Timer T6 U/D
T6OTL
T6OUT T6OUF
MC_GPT_BLOCK2
Figure 9
Block Diagram of GPT2
Data Sheet
58
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.11
Real Time Clock
The Real Time Clock (RTC) module of the XC236xB can be clocked with a clock signal selected from internal sources or external sources (pins). The RTC basically consists of a chain of divider blocks: * * * Selectable 32:1 and 8:1 dividers (on - off) The reloadable 16-bit timer T14 The 32-bit RTC timer block (accessible via registers RTCH and RTCL) consisting of: - a reloadable 10-bit timer - a reloadable 6-bit timer - a reloadable 6-bit timer - a reloadable 10-bit timer
All timers count up. Each timer can generate an interrupt request. All requests are combined to a common node request.
fRTC
RUN
M UX
:32
M UX
:8
Interrupt Sub Node CNT INT0 CNT INT1 CNT INT2
RTCINT CNT INT3
PRE
REFCLK
REL-Register T14REL 10 Bits 6 Bits 6 Bits 10 Bits
f CNT
T14 T14-Register
10 Bits
6 Bits
6 Bits
10 Bits
CNT-Register
M CB05568B
Figure 10
RTC Block Diagram
Note: The registers associated with the RTC are only affected by a power reset.
Data Sheet
59
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description The RTC module can be used for different purposes: * * * * System clock to determine the current time and date Cyclic time-based interrupt, to provide a system time tick independent of CPU frequency and other resources 48-bit timer for long-term measurements Alarm interrupt at a defined time
Data Sheet
60
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.12
A/D Converters
For analog signal measurement, up to two 10-bit A/D converters (ADC0, ADC1) with 11 + 5 multiplexed input channels and a sample and hold circuit have been integrated on-chip. 4 inputs can be converted by both A/D converters. Conversions use the successive approximation method. The sample time (to charge the capacitors) and the conversion time are programmable so that they can be adjusted to the external circuit. The A/D converters can also operate in 8-bit conversion mode, further reducing the conversion time. Several independent conversion result registers, selectable interrupt requests, and highly flexible conversion sequences provide a high degree of programmability to meet the application requirements. Both modules can be synchronized to allow parallel sampling of two input channels. For applications that require more analog input channels, external analog multiplexers can be controlled automatically. For applications that require fewer analog input channels, the remaining channel inputs can be used as digital input port pins. The A/D converters of the XC236xB support two types of request sources which can be triggered by several internal and external events. * * Parallel requests are activated at the same time and then executed in a predefined sequence. Queued requests are executed in a user-defined sequence.
In addition, the conversion of a specific channel can be inserted into a running sequence without disturbing that sequence. All requests are arbitrated according to the priority level assigned to them. Data reduction features reduce the number of required CPU access operations allowing the precise evaluation of analog inputs (high conversion rate) even at a low CPU speed. Result data can be reduced by limit checking or accumulation of results. The Peripheral Event Controller (PEC) can be used to control the A/D converters or to automatically store conversion results to a table in memory for later evaluation, without requiring the overhead of entering and exiting interrupt routines for each data transfer. Each A/D converter contains eight result registers which can be concatenated to build a result FIFO. Wait-for-read mode can be enabled for each result register to prevent the loss of conversion data. In order to decouple analog inputs from digital noise and to avoid input trigger noise, those pins used for analog input can be disconnected from the digital input stages. This can be selected for each pin separately with the Port x Digital Input Disable registers. The Auto-Power-Down feature of the A/D converters minimizes the power consumption when no conversion is in progress. Broken wire detection for each channel and a multiplexer test mode provide information to verify the proper operation of the analog signal sources (e.g. a sensor system).
Data Sheet
61
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.13
Universal Serial Interface Channel Modules (USIC)
The XC236xB features the USIC modules USIC0, USIC1, USIC2. Each module provides two serial communication channels. The Universal Serial Interface Channel (USIC) module is based on a generic data shift and data storage structure which is identical for all supported serial communication protocols. Each channel supports complete full-duplex operation with a basic data buffer structure (one transmit buffer and two receive buffer stages). In addition, the data handling software can use FIFOs. The protocol part (generation of shift clock/data/control signals) is independent of the general part and is handled by protocol-specific preprocessors (PPPs). The USIC's input/output lines are connected to pins by a pin routing unit. The inputs and outputs of each USIC channel can be assigned to different interface pins, providing great flexibility to the application software. All assignments can be made during runtime.
Bus Buffer & Shift Structure Protocol Preprocessors Control 0 PPP_A Pin Routing Shell
USIC_basic.vsd
Pins
Bus Interface
DBU 0
DSU 0
PPP_B PPP_C PPP_D
Control 1 PPP_A DBU 1 DSU 1 PPP_B PPP_C PPP_D
fsys
Fractional Dividers
Baud rate Generators
Figure 11
General Structure of a USIC Module
The regular structure of the USIC module brings the following advantages: * * * Higher flexibility through configuration with same look-and-feel for data management Reduced complexity for low-level drivers serving different protocols Wide range of protocols with improved performances (baud rate, buffer handling)
62 V1.2, 2010-04
Data Sheet
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Target Protocols Each USIC channel can receive and transmit data frames with a selectable data word width from 1 to 16 bits in each of the following protocols: * UART (asynchronous serial channel) - module capability: maximum baud rate = fSYS / 4 - data frame length programmable from 1 to 63 bits - MSB or LSB first LIN Support (Local Interconnect Network) - module capability: maximum baud rate = fSYS / 16 - checksum generation under software control - baud rate detection possible by built-in capture event of baud rate generator SSC/SPI/QSPI (synchronous serial channel with or without data buffer) - module capability: maximum baud rate = fSYS / 2, limited by loop delay - number of data bits programmable from 1 to 63, more with explicit stop condition - MSB or LSB first - optional control of slave select signals IIC (Inter-IC Bus) - supports baud rates of 100 kbit/s and 400 kbit/s IIS (Inter-IC Sound Bus) - module capability: maximum baud rate = fSYS / 2
*
*
* *
Note: Depending on the selected functions (such as digital filters, input synchronization stages, sample point adjustment, etc.), the maximum achievable baud rate can be limited. Please note that there may be additional delays, such as internal or external propagation delays and driver delays (e.g. for collision detection in UART mode, for IIC, etc.).
Data Sheet
63
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.14
MultiCAN Module
The MultiCAN module contains independently operating CAN nodes with Full-CAN functionality which are able to exchange Data and Remote Frames using a gateway function. Transmission and reception of CAN frames is handled in accordance with CAN specification V2.0 B (active). Each CAN node can receive and transmit standard frames with 11-bit identifiers as well as extended frames with 29-bit identifiers. All CAN nodes share a common set of message objects. Each message object can be individually allocated to one of the CAN nodes. Besides serving as a storage container for incoming and outgoing frames, message objects can be combined to build gateways between the CAN nodes or to set up a FIFO buffer. Note: The number of CAN nodes and message objects depends on the selected device type. The message objects are organized in double-chained linked lists, where each CAN node has its own list of message objects. A CAN node stores frames only into message objects that are allocated to its own message object list and it transmits only messages belonging to this message object list. A powerful, command-driven list controller performs all message object list operations.
MultiCAN Module Kernel
Clock Control fCAN CAN Node n
TXDCn RXDCn
Address Decoder
Message Object Buffer
Linked List Control
CAN Node 0 Interrupt Control
...
TXDC0 RXDC0
...
...
Port Control
CAN Control
mc_multican_block.vsd
Figure 12
Block Diagram of MultiCAN Module
Data Sheet
64
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description MultiCAN Features * * * * * * * CAN functionality conforming to CAN specification V2.0 B active for each CAN node (compliant to ISO 11898) Independent CAN nodes Set of independent message objects (shared by the CAN nodes) Dedicated control registers for each CAN node Data transfer rate up to 1 Mbit/s, individually programmable for each node Flexible and powerful message transfer control and error handling capabilities Full-CAN functionality for message objects: - Can be assigned to one of the CAN nodes - Configurable as transmit or receive objects, or as message buffer FIFO - Handle 11-bit or 29-bit identifiers with programmable acceptance mask for filtering - Remote Monitoring Mode, and frame counter for monitoring Automatic Gateway Mode support 16 individually programmable interrupt nodes Analyzer mode for CAN bus monitoring
* * *
3.15
System Timer
The System Timer consists of a programmable prescaler and two concatenated timers (10 bits and 6 bits). Both timers can generate interrupt requests. The clock source can be selected and the timers can also run during power reduction modes. Therefore, the System Timer enables the software to maintain the current time for scheduling functions or for the implementation of a clock.
3.16
Watchdog Timer
The Watchdog Timer is one of the fail-safe mechanisms which have been implemented to prevent the controller from malfunctioning for longer periods of time. The Watchdog Timer is always enabled after an application reset of the chip. It can be disabled and enabled at any time by executing the instructions DISWDT and ENWDT respectively. The software has to service the Watchdog Timer before it overflows. If this is not the case because of a hardware or software failure, the Watchdog Timer overflows, generating a prewarning interrupt and then a reset request. The Watchdog Timer is a 16-bit timer clocked with the system clock divided by 16,384 or 256. The Watchdog Timer register is set to a prespecified reload value (stored in WDTREL) in order to allow further variation of the monitored time interval. Each time it is serviced by the application software, the Watchdog Timer is reloaded and the prescaler is cleared. Time intervals between 3.2 s and 13.4 s can be monitored (@ 80 MHz). The default Watchdog Timer interval after power-up is 6.5 ms (@ 10 MHz).
Data Sheet
65
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.17
Clock Generation
The Clock Generation Unit can generate the system clock signal fSYS for the XC236xB from a number of external or internal clock sources: * * * * External clock signals with pad voltage or core voltage levels External crystal or resonator using the on-chip oscillator On-chip clock source for operation without crystal/resonator Wake-up clock (ultra-low-power) to further reduce power consumption
The programmable on-chip PLL with multiple prescalers generates a clock signal for maximum system performance from standard crystals, a clock input signal, or from the on-chip clock source. See also Section 4.7.2. The Oscillator Watchdog (OWD) generates an interrupt if the crystal oscillator frequency falls below a certain limit or stops completely. In this case, the system can be supplied with an emergency clock to enable operation even after an external clock failure. All available clock signals can be output on one of two selectable pins.
Data Sheet
66
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.18
Parallel Ports
The XC236xB provides up to 76 I/O lines which are organized into 7 input/output ports and 2 input ports. All port lines are bit-addressable, and all input/output lines can be individually (bit-wise) configured via port control registers. This configuration selects the direction (input/output), push/pull or open-drain operation, activation of pull devices, and edge characteristics (shape) and driver characteristics (output current) of the port drivers. The I/O ports are true bidirectional ports which are switched to high impedance state when configured as inputs. During the internal reset, all port pins are configured as inputs without pull devices active. All port lines have alternate input or output functions associated with them. These alternate functions can be programmed to be assigned to various port pins to support the best utilization for a given application. For this reason, certain functions appear several times in Table 10. All port lines that are not used for alternate functions may be used as general purpose I/O lines. Table 10 Port P0 P1 P2 P4 P5 P6 P7 P10 P15 Summary of the XC236xB's Ports Width 8 8 14 4 11 3 5 16 5 I/O I/O I/O I/O I/O I I/O I/O I/O I Connected Modules EBC (A7...A0), CCU6, USIC, CAN EBC (A15...A8), CCU6, USIC EBC (READY, BHE, A23...A16, AD15...AD13, D15...D13), CAN, CC2, GPT12E, USIC, DAP/JTAG EBC (CS3...CS0), CC2, CAN, GPT12E, USIC Analog Inputs, CCU6, DAP/JTAG, GPT12E, CAN ADC, CAN, GPT12E CAN, GPT12E, SCU, DAP/JTAG, CCU6, ADC, USIC EBC (ALE, RD, WR, AD12...AD0, D12...D0), CCU6, USIC, DAP/JTAG, CAN Analog Inputs, GPT12E
Data Sheet
67
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description
3.19
Instruction Set Summary
Table 11 lists the instructions of the XC236xB. The addressing modes that can be used with a specific instruction, the function of the instructions, parameters for conditional execution of instructions, and the opcodes for each instruction can be found in the "Instruction Set Manual". This document also provides a detailed description of each instruction. Table 11 Mnemonic ADD(B) ADDC(B) SUB(B) SUBC(B) MUL(U) DIV(U) DIVL(U) CPL(B) NEG(B) AND(B) OR(B) XOR(B) BCLR/BSET BMOV(N) BCMP BFLDH/BFLDL CMP(B) CMPD1/2 CMPI1/2 PRIOR SHL/SHR Instruction Set Summary Description Add word (byte) operands Add word (byte) operands with Carry Subtract word (byte) operands Subtract word (byte) operands with Carry (Un)Signed multiply direct GPR by direct GPR (16- x 16-bit) Bytes 2/4 2/4 2/4 2/4 2
(Un)Signed divide register MDL by direct GPR (16-/16-bit) 2 (Un)Signed long divide reg. MD by direct GPR (32-/16-bit) 2 Complement direct word (byte) GPR Negate direct word (byte) GPR Bitwise AND, (word/byte operands) Bitwise OR, (word/byte operands) Bitwise exclusive OR, (word/byte operands) Clear/Set direct bit Move (negated) direct bit to direct bit Compare direct bit to direct bit Bitwise modify masked high/low byte of bit-addressable direct word memory with immediate data Compare word (byte) operands Compare word data to GPR and decrement GPR by 1/2 Compare word data to GPR and increment GPR by 1/2 Determine number of shift cycles to normalize direct word GPR and store result in direct word GPR Shift left/right direct word GPR 2 2 2/4 2/4 2/4 2 4 4 4 4 2/4 2/4 2/4 2 2
BAND/BOR/BXOR AND/OR/XOR direct bit with direct bit
Data Sheet
68
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Table 11 Mnemonic ROL/ROR ASHR MOV(B) MOVBS/Z JMPA/I/R JMPS JB(C) JNB(S) CALLA/I/R CALLS PCALL TRAP PUSH/POP SCXT RET(P) RETS RETI SBRK SRST IDLE PWRDN SRVWDT DISWDT/ENWDT EINIT ATOMIC EXTR EXTP(R) EXTS(R) Instruction Set Summary (cont'd) Description Rotate left/right direct word GPR Arithmetic (sign bit) shift right direct word GPR Move word (byte) data Move byte operand to word op. with sign/zero extension Jump absolute/indirect/relative if condition is met Jump absolute to a code segment Jump relative if direct bit is set (and clear bit) Jump relative if direct bit is not set (and set bit) Call absolute subroutine in any code segment Push direct word register onto system stack and call absolute subroutine Call interrupt service routine via immediate trap number Push/pop direct word register onto/from system stack Push direct word register onto system stack and update register with word operand Return from intra-segment subroutine (and pop direct word register from system stack) Return from inter-segment subroutine Return from interrupt service subroutine Software Break Software Reset Enter Idle Mode Unused instruction
1)
Bytes 2 2 2/4 2/4 4 4 4 4 4 4 2 2 4 2 2 2 2 4 4 4 4 4 4 2 2 2/4 2/4
Call absolute/indirect/relative subroutine if condition is met 4
Service Watchdog Timer Disable/Enable Watchdog Timer End-of-Initialization Register Lock Begin ATOMIC sequence Begin EXTended Register sequence Begin EXTended Page (and Register) sequence Begin EXTended Segment (and Register) sequence
Data Sheet
69
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Functional Description Table 11 Mnemonic NOP CoMUL/CoMAC CoADD/CoSUB Co(A)SHR CoSHL CoLOAD/STORE CoCMP CoMAX/MIN CoABS/CoRND CoMOV CoNEG/NOP Instruction Set Summary (cont'd) Description Null operation Multiply (and accumulate) Add/Subtract (Arithmetic) Shift right Shift left Load accumulator/Store MAC register Compare Maximum/Minimum Absolute value/Round accumulator Data move Negate accumulator/Null operation Bytes 2 4 4 4 4 4 4 4 4 4 4
1) The Enter Power Down Mode instruction is not used in the XC236xB, due to the enhanced power control scheme. PWRDN will be correctly decoded, but will trigger no action.
Data Sheet
70
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4
Electrical Parameters
The operating range for the XC236xB is defined by its electrical parameters. For proper operation the specified limits must be respected when integrating the device in its target environment.
4.1
General Parameters
These parameters are valid for all subsequent descriptions, unless otherwise noted. Table 12 Parameter Output current on a pin when high value is driven Output current on a pin when low value is driven Overload current Absolute sum of overload currents Junction Temperature Storage Temperature Absolute Maximum Rating Parameters Symbol Min. Values Typ. - - - - - - - - Max. - 30 10 100 150 150 1.65 6.0 mA mA mA mA C C V V
1) 1)
Unit
Note / Test Condition
IOH SR IOL SR IOV SR
|IOV| SR
-30 - -10 - -40 -65 -0.5 -0.5
TJ SR TST SR Digital core supply voltage VDDI SR Digital supply voltage for VDDP SR
IO pads and voltage regulators Voltage on any pin with respect to ground (Vss)
VIN SR
-0.5
-
VDDP + V
0.5
VIN VDDP(max)
1) Overload condition occurs if the input voltage VIN is out of the absolute maximum rating range. In this case the current must be limited to the listed values by design measures.
Note: Stresses above the values listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only. Functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for an extended time may affect device reliability. During absolute maximum rating overload conditions (VIN > VDDP or VIN < VSS) the voltage on VDDP pins with respect to ground (VSS) must not exceed the values defined by the absolute maximum ratings.
Data Sheet
71
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.1.1
Operating Conditions
The following operating conditions must not be exceeded to ensure correct operation of the XC236xB. All parameters specified in the following sections refer to these operating conditions, unless otherwise noticed. Note: Typical parameter values refer to room temperature and nominal supply voltage, minimum/maximum parameter values also include conditions of minimum/maximum temperature and minimum/maximum supply voltage. Additional details are described where applicable. Table 13 Parameter Voltage Regulator Buffer Capacitance for DMP_M Voltage Regulator Buffer Capacitance for DMP_1 External Load Capacitance System frequency Overload current for analog inputs6) Operating Conditions Symbol Min. Values Typ. - - 203) Max. 4.7 2.2 - F F pF 1.0 0.47 - Unit Note / Test Condition
1)
CEVRM
SR
CEVR1
SR
2)1)
CL SR
pin out driver= default
4) 5)
fSYS SR - IOVA SR -2
- -
80 5
MHz mA
not subject to production test not subject to production test
Overload current for digital IOVD SR -5 inputs6) Overload current coupling KOVA factor for analog inputs7) CC -
-
5
mA
2.5 x 10-4
1.5 x 10-3
-
IOV< 0 mA; not
subject to production test
-
1.0 x 10-6
1.0 x 10-4
-
IOV> 0 mA; not
subject to production test
Data Sheet
72
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 13 Parameter Operating Conditions (cont'd) Symbol Min. Overload current coupling KOVD factor for digital I/O pins CC - Values Typ. 1.0 x 10-2 Max. 3.0 x 10-2 Unit Note / Test Condition
IOV< 0 mA; not
subject to production test
-
1.0 x 10-4
5.0 x 10-3
-
IOV> 0 mA; not
subject to production test
Absolute sum of overload currents
|IOV| SR
-
-
50
mA
not subject to production test
Digital core supply voltage VDDI SR 1.4 Digital supply voltage for IO pads and voltage regulators Digital ground voltage
- -
1.6 5.5
V V
VDDP SR 3.0
-
VSS SR
0
-
V
1) To ensure the stability of the voltage regulators the EVRs must be buffered with ceramic capacitors. Separate buffer capacitors with the recomended values shall be connected as close as possible to each VDDI pin to keep the resistance of the board tracks below 2 Ohm. Connect all VDDI1 pins together. The minimum capacitance value is required for proper operation under all conditions (e.g. temperature). Higher values slightly increase the startup time. 2) Use one Capacitor for each pin. 3) This is the reference load. For bigger capacitive loads, use the derating factors listed in the PAD properties section. 4) The timing is valid for pin drivers operating in default current mode (selected after reset). Reducing the output current may lead to increased delays or reduced driving capability (CL). 5) The operating frequency range may be reduced for specific device types. This is indicated in the device designation (...FxxL). 80 MHz devices are marked ...F80L. 6) Overload conditions occur if the standard operating conditions are exceeded, i.e. the voltage on any pin exceeds the specified range: VOV > VIHmax (IOV > 0) or VOV < VILmin ((IOV < 0). The absolute sum of input overload currents on all pins may not exceed 50 mA. The supply voltages must remain within the specified limits. Proper operation under overload conditions depends on the application. Overload conditions must not occur on pin XTAL1 (powered by VDDI). 7) An overload current (IOV) through a pin injects a certain error current (IINJ) into the adjacent pins. This error current adds to the respective pins leakage current (IOZ). The amount of error current depends on the overload current and is defined by the overload coupling factor KOV. The polarity of the injected error current is inverse compared to the polarity of the overload current that produces it.The total current through a pin is |ITOT| = |IOZ| + (|IOV| KOV). The additional error current may distort the input voltage on analog inputs.
Data Sheet
73
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.2
Voltage Range definitions
The XC236xB timing depends on the supply voltage. If such a dependency exists the timing values are given for 2 voltage areas commonly used. The voltage areas are defined in the following tables. Table 14 Parameter Digital supply voltage for IO pads and voltage regulators Upper Voltage Range Definition Symbol Min. Values Typ. 5 Max. 5.5 V Unit Note / Test Condition
VDDP SR 4.5
Table 15 Parameter
Lower Voltage Range Definition Symbol Min. Values Typ. 3.3 Max. 4.5 V Unit Note / Test Condition
Digital supply voltage for IO pads and voltage regulators
VDDP SR 3.0
4.2.1
Parameter Interpretation
The parameters listed in the following include both the characteristics of the XC236xB and its demands on the system. To aid in correctly interpreting the parameters when evaluating them for a design, they are marked accordingly in the column "Symbol": CC (Controller Characteristics): The logic of the XC236xB provides signals with the specified characteristics. SR (System Requirement): The external system must provide signals with the specified characteristics to the XC236xB.
Data Sheet
74
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.3
DC Parameters
These parameters are static or average values that may be exceeded during switching transitions (e.g. output current). The XC236xB can operate within a wide supply voltage range from 3.0 V to 5.5 V. However, during operation this supply voltage must remain within 10 percent of the selected nominal supply voltage. It cannot vary across the full operating voltage range. Because of the supply voltage restriction and because electrical behavior depends on the supply voltage, the parameters are specified separately for the upper and the lower voltage range. During operation, the supply voltages may only change with a maximum speed of dV/dt < 1 V/ms. Leakage current is strongly dependent on the operating temperature and the voltage level at the respective pin. The maximum values in the following tables apply under worst case conditions, i.e. maximum temperature and an input level equal to the supply voltage. The value for the leakage current in an application can be determined by using the respective leakage derating formula (see tables) with values from that application. The pads of the XC236xB are designed to operate in various driver modes. The DC parameter specifications refer to the pad current limits specified in Section 4.7.4.
Data Sheet
75
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Pullup/Pulldown Device Behavior Most pins of the XC236xB feature pullup or pulldown devices. For some special pins these are fixed; for the port pins they can be selected by the application. The specified current values indicate how to load the respective pin depending on the intended signal level. Figure 13 shows the current paths. The shaded resistors shown in the figure may be required to compensate system pull currents that do not match the given limit values.
VDDP
Pullup
Pulldown
VSS
MC_XC2X_PULL
Figure 13
Pullup/Pulldown Current Definition
Data Sheet
76
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.3.1
DC Parameters for Upper Voltage Area
Keeping signal levels within the limits specified in this table ensures operation without overload conditions. For signal levels outside these specifications, also refer to the specification of the overload current IOV. Note: Operating Conditions apply. Table 16 is valid under the following conditions: VDDP 5.5 V; VDDPtyp. 5 V; VDDP 4.5 V Table 16 Parameter Pin capacitance (digital inputs/outputs). To be doubled for double bond pins.1) Input Hysteresis2) Absolute input leakage current on pins of analog ports3) Absolute input leakage current for all other pins. To be doubled for double bond pins.3)1)4) DC Characteristics for Upper Voltage Range Symbol Min. Values Typ. - Max. 10 pF - Unit Note / Test Condition not subject to production test
CIO CC
HYS CC 0.11 x
- 10
- 200
V nA
RS= 0 Ohm VIN> VSS ; VIN< VDDP TJ 110 C; VIN> VSS ; VIN< VDDP TJ 150 C; VIN> VSS ; VIN< VDDP VIN VIHmin(pull down_enabled); VIN VILmax(pull up_enabled) VIN VIHmin(pull up_enabled); VIN VILmax(pull down_enabled)
VDDP
|IOZ1| CC |IOZ2| CC -
-
0.2
5
A
-
0.2
15
A
Pull Level Force Current5) |IPLF| SR 250
-
-
A
Pull Level Keep Current6)
|IPLK| SR
-
-
30
A
Input high voltage (all except XTAL1) Input low voltage (all except XTAL1)
VIH SR VIL SR
0.7 x
- -
VDDP + V
0.3 0.3 x V
VDDP
-0.3
VDDP
Data Sheet
77
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 16 Parameter Output High voltage7) DC Characteristics for Upper Voltage Range (cont'd) Symbol Min. 1.0 Values Typ. Max. - - 0.4 1.0 V V V V Unit Note / Test Condition
VOH CC VDDP - - VDDP - -
0.4
IOH IOHmax IOH IOHnom 8) IOL IOLnom 8) IOL IOLmax
Output Low Voltage
7)
VOL CC
- -
- -
1) Because each double bond pin is connected to two pads (standard pad and high-speed pad), it has twice the normal value. For a list of affected pins refer to the pin definitions table in chapter 2. 2) Not subject to production test - verified by design/characterization. Hysteresis is implemented to avoid metastable states and switching due to internal ground bounce. It cannot suppress switching due to external system noise under all conditions. 3) If the input voltage exceeds the respective supply voltage due to ground bouncing (VIN < VSS) or supply ripple (VIN > VDDP), a certain amount of current may flow through the protection diodes. This current adds to the leakage current. An additional error current (IINJ) will flow if an overload current flows through an adjacent pin. Please refer to the definition of the overload coupling factor KOV. 4) The given values are worst-case values. In production test, this leakage current is only tested at 125 C; other values are ensured by correlation. For derating, please refer to the following descriptions: Leakage derating depending on temperature (TJ = junction temperature [C]): IOZ = 0.05 x e(1.5 + 0.028 x TJ>) [A]. For example, at a temperature of 95 C the resulting leakage current is 3.2 A. Leakage derating depending on voltage level (DV = VDDP - VPIN [V]): IOZ = IOZtempmax - (1.6 x DV) (A]. This voltage derating formula is an approximation which applies for maximum temperature. 5) Drive the indicated minimum current through this pin to change the default pin level driven by the enabled pull device. 6) Limit the current through this pin to the indicated value so that the enabled pull device can keep the default pin level. 7) The maximum deliverable output current of a port driver depends on the selected output driver mode. This specification is not valid for outputs which are switched to open drain mode. In this case the respective output will float and the voltage is determined by the external circuit. 8) As a rule, with decreasing output current the output levels approach the respective supply level (VOL->VSS, VOH->VDDP). However, only the levels for nominal output currents are verified.
Data Sheet
78
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.3.2
DC Parameters for Lower Voltage Area
Keeping signal levels within the limits specified in this table ensures operation without overload conditions. For signal levels outside these specifications, also refer to the specification of the overload current IOV. Note: Operating Conditions apply. Table 17 is valid under the following conditions: VDDP 3.0 V; VDDPtyp. 3.3 V; VDDP 4.5 V Table 17 Parameter Pin capacitance (digital inputs/outputs). To be doubled for double bond pins.1) Input Hysteresis2) Absolute input leakage current on pins of analog ports3) Absolute input leakage current for all other pins. To be doubled for double bond pins.3)1)4) DC Characteristics for Lower Voltage Range Symbol Min. Values Typ. - Max. 10 pF - Unit Note / Test Condition not subject to production test
CIO CC
HYS CC 0.07 x
- 10
- 200
V nA
RS= 0 Ohm VIN> VSS ; VIN< VDDP TJ 110 C; VIN> VSS ; VIN< VDDP TJ 150 C; VIN> VSS ; VIN< VDDP VIN VIHmin(pull down) ; VIN VILmax(pull up) VIN VIHmin(pull up) ; VIN VILmax(pull down)
VDDP
|IOZ1| CC |IOZ2| CC -
-
0.2
2.5
A
-
0.2
8
A
Pull Level Force Current5) |IPLF| SR 150
-
-
A
Pull Level Keep Current6)
|IPLK| SR
-
-
10
A
Input high voltage (all except XTAL1) Input low voltage (all except XTAL1)
Data Sheet
VIH SR VIL SR
0.7 x
- -
VDDP + V
0.3 0.3 x V
VDDP
-0.3
VDDP
79 V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 17 Parameter Output High voltage7) DC Characteristics for Lower Voltage Range (cont'd) Symbol Min. 1.0 Values Typ. Max. - - 0.4 1.0 V V V V Unit Note / Test Condition
VOH CC VDDP - - VDDP - -
0.4
IOH IOHmax IOH IOHnom 8) IOL IOLnom 8) IOL IOLmax
Output Low Voltage
7)
VOL CC
- -
- -
1) Because each double bond pin is connected to two pads (standard pad and high-speed pad), it has twice the normal value. For a list of affected pins refer to the pin definitions table in chapter 2. 2) Not subject to production test - verified by design/characterization. Hysteresis is implemented to avoid metastable states and switching due to internal ground bounce. It cannot suppress switching due to external system noise under all conditions. 3) If the input voltage exceeds the respective supply voltage due to ground bouncing (VIN < VSS) or supply ripple (VIN > VDDP), a certain amount of current may flow through the protection diodes. This current adds to the leakage current. An additional error current (IINJ) will flow if an overload current flows through an adjacent pin. Please refer to the definition of the overload coupling factor KOV. 4) The given values are worst-case values. In production test, this leakage current is only tested at 125 C; other values are ensured by correlation. For derating, please refer to the following descriptions: Leakage derating depending on temperature (TJ = junction temperature [C]): IOZ = 0.05 x e(1.5 + 0.028 x TJ>) [A]. For example, at a temperature of 95 C the resulting leakage current is 3.2 A. Leakage derating depending on voltage level (DV = VDDP - VPIN [V]): IOZ = IOZtempmax - (1.6 x DV) (A]. This voltage derating formula is an approximation which applies for maximum temperature. 5) Drive the indicated minimum current through this pin to change the default pin level driven by the enabled pull device: VPIN <= VIL for a pullup; VPIN >= VIH for a pulldown. 6) Limit the current through this pin to the indicated value so that the enabled pull device can keep the default pin level: VPIN >= VIH for a pullup; VPIN <= VIL for a pulldown. 7) The maximum deliverable output current of a port driver depends on the selected output driver mode. This specification is not valid for outputs which are switched to open drain mode. In this case the respective output will float and the voltage is determined by the external circuit. 8) As a rule, with decreasing output current the output levels approach the respective supply level (VOL->VSS, VOH->VDDP). However, only the levels for nominal output currents are verified.
Data Sheet
80
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.3.3
Power Consumption
The power consumed by the XC236xB depends on several factors such as supply voltage, operating frequency, active circuits, and operating temperature. The power consumption specified here consists of two components: * * The switching current IS depends on the device activity The leakage current ILK depends on the device temperature
To determine the actual power consumption, always both components, switching current IS and leakage current ILK must be added:
IDDP = IS + ILK.
Note: The power consumption values are not subject to production test. They are verified by design/characterization. To determine the total power consumption for dimensioning the external power supply, also the pad driver currents must be considered. The given power consumption parameters and their values refer to specific operating conditions: * * Active mode: Regular operation, i.e. peripherals are active, code execution out of Flash. Stopover mode: Crystal oscillator and PLL stopped, Flash switched off, clock in domain DMP_1 stopped.
Note: The maximum values cover the complete specified operating range of all manufactured devices. The typical values refer to average devices under typical conditions, such as nominal supply voltage, room temperature, application-oriented activity. After a power reset, the decoupling capacitors for VDDI are charged with the maximum possible current. For additional information, please refer to Section 5.2, Thermal Considerations. Note: Operating Conditions apply.
Data Sheet
81
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 18 Parameter Switching Power Consumption Symbol Min. Power supply current ISACT (active) with all peripherals CC active and EVVRs on - Values Typ. Max. Unit Note / Test Condition power_mode= active ; voltage_range= both 2)3)4) power_mode= stopover ; voltage_range= both 4)
6 + 0.6 8 + 1.0 mA x fSYS1) x fSYS1)
Power supply current in ISSO CC - stopover mode, EVVRs on
0.7
2.0
mA
1) fSYS in MHz 2) The pad supply voltage pins (VDDPB) provide the input current for the on-chip EVVRs and the current consumed by the pin output drivers. A small current is consumed because the drivers input stages are switched. In Fast Startup Mode (with the Flash modules deactivated), the typical current is reduced to 3 + 0.6 x fSYS. 3) Please consider the additional conditions described in section "Active Mode Power Supply Current". 4) The pad supply voltage has only a minor influence on this parameter.
Active Mode Power Supply Current The actual power supply current in active mode not only depends on the system frequency but also on the configuration of the XC236xB's subsystem. Besides the power consumed by the device logic the power supply pins also provide the current that flows through the pin output drivers. A small current is consumed because the drivers' input stages are switched. The IO power domains can be supplied separately. Power domain A (VDDPA) supplies the A/D converters and Port 6. Power domain B (VDDPB) supplies the on-chip EVVRs and all other ports. During operation domain A draws a maximum current of 1.5 mA for each active A/D converter module from VDDPA. In Fast Startup Mode (with the Flash modules deactivated), the typical current is reduced to 3 + 0.6xfSYS mA.
Data Sheet
82
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
IS [mA]
100 90 80 70
ISACTmax
ISACTtyp
60 50 40 30 20 10
20
40
60
80
fSYS [MHz]
MC_XC2XN_IS
Figure 14
Supply Current in Active Mode as a Function of Frequency
Note: Operating Conditions apply. Table 19 Parameter Leakage supply current 1) Leakage Power Consumption Symbol Min. Values Typ. 0.03 0.5 1.9 3.9 Max. 0.04 1.2 5.5 12.2 mA mA mA mA - - - - Unit Note / Test Condition
ILK1 CC
TJ= 25 C1) TJ= 85 C1) TJ= 125 C1) TJ= 150 C1)
1) All inputs (including pins configured as inputs) are set at 0 V to 0.1 V or at VDDP - 0.1 V to VDDP and all outputs (including pins configured as outputs) are disconnected.
Data Sheet
83
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Note: A fraction of the leakage current flows through domain DMP_A (pin VDDPA). This current can be calculated as 7,000 x e-, with = 5000 / (273 + 1.3xTJ). For TJ = 150C, this results in a current of 160 A. The leakage power consumption can be calculated according to the following formulas: ILK1 = 500,000 + e- with = 5000 / (273 + BxTJ) Parameter B must be replaced by * * 1.0 for typical values 1.3 for maximum values
ILK [mA] ILK1max
12 10 8 6 4 2
ILK1typ
-50
0
50
100
125
150
TJ [C]
MC_XC2XN_ILKN
Figure 15
Leakage Supply Current as a Function of Temperature
Data Sheet
84
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.4
Analog/Digital Converter Parameters
These parameters describe the conditions for optimum ADC performance. Note: Operating Conditions apply. Table 20 Parameter Switched capacitance at an analog input Total capacitance at an analog input Switched capacitance at the reference input Total capacitance at the reference input Differential Non-Linearity Error Gain Error Integral Non-Linearity Offset Error Analog clock frequency ADC Parameters Symbol Min. Values Typ. - Max. 4 pF - Unit Note / Test Condition not subject to production test
1)
CAINSW
CC
CAINT
CC
-
-
10
pF
not subject to production test
1)
CAREFSW -
CC -
-
7
pF
not subject to production test
1)
CAREFT
CC |EADNL| CC
-
15
pF
not subject to production test
1)
-
0.8 0.4 0.8 0.5 - - -
1 0.8 1.2 0.8 16.5 20 2
LSB LSB LSB LSB MHz voltage_range= lower MHz voltage_range= upper kOh m kOh m not subject to production test
1)
|EAGAIN| - CC |EAINL| CC |EAOFF| CC - -
fADCI SR 0.5
0.5
Input resistance of the selected analog channel Input resistance of the reference input
RAIN CC -
-
RAREF
CC
-
2
not subject to production test
1)
Data Sheet
85
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 20 Parameter Broken wire detection delay against VAGND2) Broken wire detection delay against VAREF2) Conversion time for 8-bit result2) ADC Parameters (cont'd) Symbol Min. Values Typ. - - Max. 503) 504) - Unit Note / Test Condition
tBWG CC - tBWR CC - tc8 CC
(11+S - TC) x tADCI + 2x
tSYS
Conversion time for 10-bit tc10 CC result2) (13+S - -
TC) x tADCI +
2x
tSYS
Total Unadjusted Error |TUE| CC - 1 - - - - - 2 4 15 1.5 LSB s s V V V
6) 5)
Wakeup time from analog tWAF CC - powerdown, fast mode Wakeup time from analog tWAS CC - powerdown, slow mode Analog reference ground Analog input voltage range Analog reference voltage
VAGND
SR
VSS 0.05
VAIN SR VAGND VAREF
SR
VAREF VDDPA
+ 0.05
VAGND
+ 1.0
1) These parameter values cover the complete operating range. Under relaxed operating conditions (temperature, supply voltage) typical values can be used for calculation. At room temperature and nominal supply voltage the following typical values can be used: CAINTtyp = 12 pF, CAINStyp = 5 pF, RAINtyp = 1.0 kOhm, CAREFTtyp = 15 pF, CAREFStyp = 10 pF, RAREFtyp = 1.0 kOhm. 2) This parameter includes the sample time (also the additional sample time specified by STC), the time to determine the digital result and the time to load the result register with the conversion result. Values for the basic clock tADCI depend on programming. 3) The broken wire detection delay against VAGND is measured in numbers of consecutive precharge cycles at a conversion rate of not more than 500 s. Result below 10% (66H)
Data Sheet
86
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4) The broken wire detection delay against VAREF is measured in numbers of consecutive precharge cycles at a conversion rate of not more than 10 s. This function is influenced by leakage current, in particular at high temperature. Result above 80% (332H) 5) TUE is tested at VAREF = VDDPA = 5.0 V, VAGND = 0 V. It is verified by design for all other voltages within the defined voltage range. The specified TUE is valid only if the absolute sum of input overload currents on analog port pins (see IOV specification) does not exceed 10 mA, and if VAREF and VAGND remain stable during the measurement time. 6) VAIN may exceed VAGND or VAREF up to the absolute maximum ratings. However, the conversion result in these cases will be X000H or X3FFH, respectively.
RSource V AIN C Ext
R AIN, On C AINT - C AINS
A/D Converter
CAINS
MCS05570
Figure 16
Equivalent Circuitry for Analog Inputs
Data Sheet
87
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Sample time and conversion time of the XC236xB's A/D converters are programmable. The timing above can be calculated using Table 21. The limit values for fADCI must not be exceeded when selecting the prescaler value. Table 21 A/D Converter Computation Table A/D Converter Analog Clock fADCI INPCRx.7-0 (STC) 00H 01H 02H : FEH FFH Sample Time1)
GLOBCTR.5-0 (DIVA) 000000B 000001B 000010B : 111110B 111111B
fSYS fSYS / 2 fSYS / 3 fSYS / (DIVA+1) fSYS / 63 fSYS / 64
tS tADCI x 2 tADCI x 3 tADCI x 4 tADCI x (STC+2) tADCI x 256 tADCI x 257
1) The selected sample time is doubled if broken wire detection is active (due to the presampling phase).
Converter Timing Example A: Assumptions: Analog clock Sample time
fSYS fADCI tS tC10
= 80 MHz (i.e. tSYS = 12.5 ns), DIVA = 03H, STC = 00H = fSYS / 4 = 20 MHz, i.e. tADCI = 50 ns = tADCI x 2 = 100 ns = 13 x tADCI + 2 x tSYS = 13 x 50 ns + 2 x 12.5 ns = 0.675 s = 11 x tADCI + 2 x tSYS = 11 x 50 ns + 2 x 12.5 ns = 0.575 s
Conversion 10-bit: Conversion 8-bit:
tC8
Converter Timing Example B: Assumptions: Analog clock Sample time
fSYS fADCI tS tC10
= 40 MHz (i.e. tSYS = 25 ns), DIVA = 02H, STC = 03H = fSYS / 3 = 13.3 MHz, i.e. tADCI = 75 ns = tADCI x 5 = 375 ns = 16 x tADCI + 2 x tSYS = 16 x 75 ns + 2 x 25 ns = 1.25 s = 14 x tADCI + 2 x tSYS = 14 x 75 ns + 2 x 25 ns = 1.10 s
Conversion 10-bit: Conversion 8-bit:
tC8
Data Sheet
88
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.5
System Parameters
The following parameters specify several aspects which are important when integrating the XC236xB into an application system. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 22 Parameter Short-term deviation of internal clock source frequency1) Internal clock source frequency Wakeup clock source frequency2) Various System Parameters Symbol Min. fINT CC -1 Values Typ. - Max. 1 % Unit Note / Test Condition
fINT CC fWU CC
4.8 400 210 140 110
5.0 500 270 180 140 -
5.2 600 330 220 170 12 /
MHz kHz kHz kHz kHz s FREQSEL= 00 FREQSEL= 01 FREQSEL= 10 FREQSEL= 11
Startup time from stopover tSSO CC 11 / fWU3) mode with code execution from PSRAM Core voltage (PVC) supervision level Supply watchdog (SWD) supervision level
fWU3) VLV VLV VLV VLV +
0.07 V V V
5)
VPVC CC VLV 0.03
4)
VSWD
CC
0.106)
VLV -
VLV + 0.15 VLV + 0.15
voltage_range= lower 5) voltage_range= upper 5)
VLV 0.15
1) The short-term frequency deviation refers to a timeframe of 20 ms and is measured relative to the current frequency at the beginning of the respective timeframe 2) This parameter is tested for the fastest and the slowest selection. The medium selections are not subject to production test - verified by design/characterization 3) fWU in MHz 4) This value includes a hysteresis of approximately 50 mV for rising voltage. 5) VLV = selected SWD voltage level 6) The limit VLV - 0.10 V is valid for the OK1 level. The limit for the OK2 level is VLV - 0.15 V.
Data Sheet
89
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Conditions for tSSO Timing Measurement The time required for the transition from Stopover to Stopover Waked-Up mode is called tSSO. It is measured under the following conditions: Precondition: The Stopover mode has been entered using the procedure defined in the Programmer's Guide. Start condition: Pin toggle on ESR pin triggering the startup sequence. End condition: External pin toggle caused by first user instruction executed from PSRAM after startup.
Data Sheet
90
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 23 Code 0000B 0001B 0010B 0011B 0100B 0101B 0110B 0111B 1000B 1001B 1010B 1011B 1100B 1101B 1110B 1111B Coding of bit fields LEVxV in Register SWDCON0 Default Voltage Level 2.9 V 3.0 V 3.1 V 3.2 V 3.3 V 3.4 V 3.6 V 4.0 V 4.2 V 4.5 V 4.6 V 4.7 V 4.8 V 4.9 V 5.0 V 5.5 V LEV2V: no request LEV1V: reset request Notes1)
1) The indicated default levels are selected automatically after a power reset.
Table 24 Code 000B 001B 010B 011B 100B 101B 110B 111B
Coding of bit fields LEVxV in Registers PVCyCONz Default Voltage Level 0.95 V 1.05 V 1.15 V 1.25 V 1.35 V 1.45 V 1.55 V 1.65 V LEV1V: reset request LEV2V: interrupt request Notes1)
1) The indicated default levels are selected automatically after a power reset.
Data Sheet
91
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.6
Flash Memory Parameters
The XC236xB is delivered with all Flash sectors erased and with no protection installed. The data retention time of the XC236xB's Flash memory (i.e. the time after which stored data can still be retrieved) depends on the number of times the Flash memory has been erased and programmed. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 25 Parameter Parallel Flash module program/erase limit depending on Flash read activity Flash Parameters Symbol Min. Values Typ. - - - - - - - 7
4)
Unit Max. 21) 1 - - - - - 8.0 3.5 - - - ms ms year s cycle s
2)
Note / Test Condition
NPP SR -
-
NFL_RD 1 NFL_RD> 1
cycle tRET 20 years s
Flash erase endurance for NSEC SR 10 security pages Flash wait states3)
NWSFLAS 1
H SR
2 3 4
fSYS 8 MHz fSYS 13 MHz fSYS 17 MHz fSYS> 17 MHz
Erase time per sector/page Programming time per page Data retention time Drain disturb limit Maximum number of erase cycles before unacceptable performance degradation occurs
tER CC tPR CC
- -
34) - -
tRET CC 20 NDD SR 32
NER 1,000 cycl
es
NER SR 15,000 -
5)
cycle tRET 5 years s
Data Sheet
92
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
1) The unused Flash module(s) can be erased/programmed while code is executed and/or data is read from only one Flash module or from PSRAM. The Flash module that delivers code/data can, of course, not be erased/programmed. 2) Flash module 1 can be erased/programmed while code is executed and/or data is read from Flash module 0. 3) Value of IMB_IMBCTRL.WSFLASH. 4) Programming and erase times depend on the internal Flash clock source. The control state machine needs a few system clock cycles. This increases the stated durations noticably only at extremely low system clock frequencies. 5) A maximum of 64 Flash sectors can be cycled 15,000 times. For all other sectors the limit is 1,000 cycles.
Access to the XC236xB Flash modules is controlled by the IMB. Built-in prefetch mechanisms optimize the performance for sequential access. Flash access waitstates only affect non-sequential access. Due to prefetch mechanisms, the performance for sequential access (depending on the software structure) is only partially influenced by waitstates.
Data Sheet
93
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7
AC Parameters
These parameters describe the dynamic behavior of the XC236xB.
4.7.1
Testing Waveforms
These values are used for characterization and production testing (except pin XTAL1).
Output delay Hold time Output delay Hold time
0.8 V DDP 0.7 V DDP Input Signal (driven by tester) 0.3 V DDP 0.2 V DDP
Output Signal (measured)
Output timings refer to the rising edge of CLKOUT. Input timings are calculated from the time, when the input signal reaches V IH or V IL, respectively.
MCD05556C
Figure 17
Input Output Waveforms
VLoad + 0.1 V
Timing Reference Points
V OH - 0.1 V
V Load - 0.1 V
V OL + 0.1 V
For timing purposes a port pin is no longer floating when a 100 mV change from load voltage occurs, but begins to float when a 100 mV change from the loaded V OH /V OL level occurs (IOH / IOL = 20 mA).
MCA05565
Figure 18
Floating Waveforms
Data Sheet
94
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.2
Definition of Internal Timing
The internal operation of the XC236xB is controlled by the internal system clock fSYS. Because the system clock signal fSYS can be generated from a number of internal and external sources using different mechanisms, the duration of the system clock periods (TCSs) and their variation (as well as the derived external timing) depend on the mechanism used to generate fSYS. This must be considered when calculating the timing for the XC236xB.
Phase Locked Loop Operation (1:N)
fI N f SYS
TCS Direct Clock Drive (1:1)
fI N f SYS
TCS Prescaler Operation (N:1)
fI N f SYS
TCS
M C_XC2X_CLOCKGEN
Figure 19
Generation Mechanisms for the System Clock
Note: The example of PLL operation shown in Figure 19 uses a PLL factor of 1:4; the example of prescaler operation uses a divider factor of 2:1. The specification of the external timing (AC Characteristics) depends on the period of the system clock (TCS).
Data Sheet
95
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Direct Drive When direct drive operation is selected (SYSCON0.CLKSEL = 11B), the system clock is derived directly from the input clock signal CLKIN1:
fSYS = fIN.
The frequency of fSYS is the same as the frequency of fIN. In this case the high and low times of fSYS are determined by the duty cycle of the input clock fIN. Selecting Bypass Operation from the XTAL11) input and using a divider factor of 1 results in a similar configuration. Prescaler Operation When prescaler operation is selected (SYSCON0.CLKSEL = 10B, PLLCON0.VCOBY = 1B), the system clock is derived either from the crystal oscillator (input clock signal XTAL1) or from the internal clock source through the output prescaler K1 (= K1DIV+1):
fSYS = fOSC / K1.
If a divider factor of 1 is selected, the frequency of fSYS equals the frequency of fOSC. In this case the high and low times of fSYS are determined by the duty cycle of the input clock fOSC (external or internal). The lowest system clock frequency results from selecting the maximum value for the divider factor K1:
fSYS = fOSC / 1024.
4.7.2.1
Phase Locked Loop (PLL)
When PLL operation is selected (SYSCON0.CLKSEL = 10B, PLLCON0.VCOBY = 0B), the on-chip phase locked loop is enabled and provides the system clock. The PLL multiplies the input frequency by the factor F (fSYS = fIN x F). F is calculated from the input divider P (= PDIV+1), the multiplication factor N (= NDIV+1), and the output divider K2 (= K2DIV+1): (F = N / (P x K2)). The input clock can be derived either from an external source at XTAL1 or from the onchip clock source. The PLL circuit synchronizes the system clock to the input clock. This synchronization is performed smoothly so that the system clock frequency does not change abruptly. Adjustment to the input clock continuously changes the frequency of fSYS so that it is locked to fIN. The slight variation causes a jitter of fSYS which in turn affects the duration of individual TCSs.
1) Voltages on XTAL1 must comply to the core supply voltage VDDI1.
Data Sheet
96
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters The timing in the AC Characteristics refers to TCSs. Timing must be calculated using the minimum TCS possible under the given circumstances. The actual minimum value for TCS depends on the jitter of the PLL. Because the PLL is constantly adjusting its output frequency to correspond to the input frequency (from crystal or oscillator), the accumulated jitter is limited. This means that the relative deviation for periods of more than one TCS is lower than for a single TCS (see formulas and Figure 20). This is especially important for bus cycles using waitstates and for the operation of timers, serial interfaces, etc. For all slower operations and longer periods (e.g. pulse train generation or measurement, lower baudrates, etc.) the deviation caused by the PLL jitter is negligible. The value of the accumulated PLL jitter depends on the number of consecutive VCO output cycles within the respective timeframe. The VCO output clock is divided by the output prescaler K2 to generate the system clock signal fSYS. The number of VCO cycles is K2 x T, where T is the number of consecutive fSYS cycles (TCS). The maximum accumulated jitter (long-term jitter) DTmax is defined by: DTmax [ns] = (220 / (K2 x fSYS) + 4.3) This maximum value is applicable, if either the number of clock cycles T > (fSYS / 1.2) or the prescaler value K2 > 17. In all other cases for a timeframe of T x TCS the accumulated jitter DT is determined by: DT [ns] = DTmax x [(1 - 0.058 x K2) x (T - 1) / (0.83 x fSYS - 1) + 0.058 x K2]
fSYS in [MHz] in all formulas.
Example, for a period of 3 TCSs @ 33 MHz and K2 = 4: Dmax = (220 / (4 x 33) + 4.3) = 5.97 ns (Not applicable directly in this case!) D3 = 5.97 x [(1 - 0.058 x 4) x (3 - 1) / (0.83 x 33 - 1) + 0.058 x 4] = 5.97 x [0.768 x 2 / 26.39 + 0.232] = 1.7 ns Example, for a period of 3 TCSs @ 33 MHz and K2 = 2: Dmax = (220 / (2 x 33) + 4.3) = 7.63 ns (Not applicable directly in this case!) D3 = 7.63 x [(1 - 0.058 x 2) x (3 - 1) / (0.83 x 33 - 1) + 0.058 x 2] = 7.63 x [0.884 x 2 / 26.39 + 0.116] = 1.4 ns
Data Sheet
97
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
Acc. jitter DT ns 9 8 7 6 5 4 3 2 1 0 1 20
fSYS = 33 MHz fSYS = 66 MHz fVCO = 66 MHz f VCO = 132 MHz
Cycles T 40 60 80 100
MC_XC2X_JITTER
Figure 20
Approximated Accumulated PLL Jitter
Note: The specified PLL jitter values are valid if the capacitive load per pin does not exceed CL = 20 pF. The maximum peak-to-peak noise on the pad supply voltage (measured between VDDPB pin 100 and VSS pin 1) is limited to a peak-to-peak voltage of VPP = 50 mV. This can be achieved by appropriate blocking of the supply voltage as close as possible to the supply pins and using PCB supply and ground planes. PLL frequency band selection Different frequency bands can be selected for the VCO so that the operation of the PLL can be adjusted to a wide range of input and output frequencies:
Data Sheet
98
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 26 Parameter VCO output frequency System PLL Parameters Symbol Min. Values Typ. - Max. 112 Unit Note / Test Condition
fVCO CC 48
MHz VCOSEL= 00b ; VCOmode= con trolled MHz VCOSEL= 00b ; VCOmode= fre e running MHz VCOSEL= 01b ; VCOmode= con trolled MHz VCOSEL= 01b ; VCOmode= fre e running
-
-
38
96
-
160
-
-
76
4.7.2.2
Wakeup Clock
When wakeup operation is selected (SYSCON0.CLKSEL = 00B), the system clock is derived from the low-frequency wakeup clock source:
fSYS = fWU.
In this mode, a basic functionality can be maintained without requiring an external clock source and while minimizing the power consumption.
4.7.2.3
Selecting and Changing the Operating Frequency
When selecting a clock source and the clock generation method, the required parameters must be carefully written to the respective bit fields, to avoid unintended intermediate states. Many applications change the frequency of the system clock (fSYS) during operation in order to optimize system performance and power consumption. Changing the operating frequency also changes the switching currents, which influences the power supply. To ensure proper operation of the on-chip EVRs while they generate the core voltage, the operating frequency shall only be changed in certain steps. This prevents overshoots and undershoots of the supply voltage.
Data Sheet
99
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters To avoid the indicated problems, recommended sequences are provided which ensure the intended operation of the clock system interacting with the power system. Please refer to the Programmer's Guide.
Data Sheet
100
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.3
External Clock Input Parameters
These parameters specify the external clock generation for the XC236xB. The clock can be generated in two ways: * * By connecting a crystal or ceramic resonator to pins XTAL1/XTAL2. By supplying an external clock signal - This clock signal can be supplied either to pin XTAL1 (core voltage domain) or to pin CLKIN1 (IO voltage domain).
If connected to CLKIN1, the input signal must reach the defined input levels VIL and VIH. If connected to XTAL1, a minimum amplitude VAX1 (peak-to-peak voltage) is sufficient for the operation of the on-chip oscillator. Note: The given clock timing parameters (t1 ... t4) are only valid for an external clock input signal. Note: Operating Conditions apply. Table 27 Parameter Oscillator frequency External Clock Input Characteristics Symbol Min. Values Typ. - - Max. 40 16 Unit Note / Test Condition
fOSC SR 4
4
MHz Input= Clock Signal MHz Input= Crystal or Ceramic Resonator A ns ns ns ns V V V V
XTAL1 input current absolute value Input clock high time
|IIL| CC
- 6 6 - - 0.3 x
- - - 8 8 - - - -
20 - - 8 8 - - - 1.7
t1 SR Input clock low time t2 SR t3 SR Input clock rise time Input clock fall time t4 SR Input voltage amplitude on VAX1 SR
XTAL11)
VDDIM
0.4 x
VDDIM
0.5 x
VDDIM
Input voltage range limits for signal on XTAL1
fOSC 4 MHz; fOSC< 16 MHz fOSC 16 MHz; fOSC< 25 MHz fOSC 25 MHz; fOSC 40 MHz
2)
VIX1 SR -1.7 + VDDI
101
Data Sheet
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
1) The amplitude voltage VAX1 refers to the offset voltage VOFF. This offset voltage must be stable during the operation and the resulting voltage peaks must remain within the limits defined by VIX1. 2) Overload conditions must not occur on pin XTAL1.
t1
t3
0.9 VAX1 0.1 VAX1
VOFF
VAX1 t2 t4 tOSC = 1/fOSC
MC_ EXTCLOCK
Figure 21
External Clock Drive XTAL1
Note: For crystal or ceramic resonator operation, it is strongly recommended to measure the oscillation allowance (negative resistance) in the final target system (layout) to determine the optimum parameters for oscillator operation. The manufacturers of crystals and ceramic resonators offer an oscillator evaluation service. This evaluation checks the crystal/resonator specification limits to ensure a reliable oscillator operation.
Data Sheet
102
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.4
Pad Properties
The output pad drivers of the XC236xB can operate in several user-selectable modes. Strong driver mode allows controlling external components requiring higher currents such as power bridges or LEDs. Reducing the driving power of an output pad reduces electromagnetic emissions (EME). In strong driver mode, selecting a slower edge reduces EME. The dynamic behavior, i.e. the rise time and fall time, depends on the applied external capacitance that must be charged and discharged. Timing values are given for a capacitance of 20 pF, unless otherwise noted. In general, the performance of a pad driver depends on the available supply voltage VDDP. Therefore the following tables list the pad parameters for the upper voltage range and the lower voltage range, respectively. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 28 is valid under the following conditions: VDDP 5.5 V; VDDPtyp. 5 V; VDDP 4.5 V Table 28 Parameter Maximum output driver current (absolute value)1) Standard Pad Parameters for Upper Voltage Range Symbol Min. Values Typ. - - - - - - Max. 4.0 10 0.5 1.0 2.5 0.1 mA mA mA mA mA mA - - - Nominal output driver current (absolute value) Unit Note / Test Condition Driver_Strength = Medium Driver_Strength = Strong Driver_Strength = Weak Driver_Strength = Medium Driver_Strength = Strong Driver_Strength = Weak
IOmax
CC
IOnom
CC
- - -
Data Sheet
103
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 28 Parameter Standard Pad Parameters for Upper Voltage Range (cont'd) Symbol Min. Rise and Fall times (10% - tRF CC 90%) - Values Typ. - Max. 23 + 0.6 x ns Unit Note / Test Condition
CL 20 pF; CL 100 pF;
Driver_Strength = Medium
CL
- - 11.6 + ns 0.22 x
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Medium
CL
-
-
4.2 + 0.14 x
ns
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Sharp
CL
-
-
20.6 + ns 0.22 x
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Slow
CL
-
-
212 + 1.9 x
ns
CL 20 pF; CL 100 pF;
Driver_Strength = Weak
CL
1) An output current above |IOXnom| may be drawn from up to three pins at the same time. For any group of 16 neighboring output pins, the total output current in each direction (IOL and -IOH) must remain below 50 mA.
Data Sheet
104
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 29 Parameter Maximum output driver current (absolute value)1) Standard Pad Parameters for Lower Voltage Range Symbol Min. Values Typ. - - - - - - Max. 2.5 10 0.5 1.0 2.5 0.1 mA mA mA mA mA mA - - - Nominal output driver current (absolute value) Unit Note / Test Condition Driver_Strength = Medium Driver_Strength = Strong Driver_Strength = Weak Driver_Strength = Medium Driver_Strength = Strong Driver_Strength = Weak
IOmax
CC
IOnom
CC
- - -
Data Sheet
105
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 29 Parameter Standard Pad Parameters for Lower Voltage Range (cont'd) Symbol Min. Rise and Fall times (10% - tRF CC 90%) - Values Typ. - Max. 37 + 0.65 x ns Unit Note / Test Condition
CL 20 pF; CL 100 pF;
Driver_Strength = Medium
CL
- - 24 + 0.3 x ns
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Medium
CL
-
-
6.2 + 0.24 x
ns
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Sharp
CL
-
-
34 + 0.3 x
ns
CL 20 pF; CL 100 pF;
Driver_Strength = Strong ; Driver_Edge= Slow
CL
-
-
500 + 2.5 x
ns
CL 20 pF; CL 100 pF;
Driver_Strength = Weak
CL
1) An output current above |IOXnom| may be drawn from up to three pins at the same time. For any group of 16 neighboring output pins, the total output current in each direction (IOL and -IOH) must remain below 50 mA.
Data Sheet
106
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.5
External Bus Timing
The following parameters specify the behavior of the XC236xB bus interface. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 30 Parameter CLKOUT Cycle Time1) CLKOUT high time CLKOUT low time CLKOUT rise time CLKOUT fall time Parameters Symbol Min. Values Typ. - - - - Max. ns - - 3 3 ns - 3 3 - - 1 / fSYS - Unit Note / Test Condition
t5 CC t6 CC t7 CC t8 CC t9 CC
1) The CLKOUT cycle time is influenced by PLL jitter. For longer periods the relative deviation decreases (see PLL deviation formula).
t9 t5
CLKOUT
MC_X_EBCCLKOUT
t6
t7
t8
Figure 22
CLKOUT Signal Timing
Note: The term CLKOUT refers to the reference clock output signal which is generated by selecting fSYS as the source signal for the clock output signal EXTCLK on pin P2.8 and by enabling the high-speed clock driver on this pin.
Data Sheet
107
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Variable Memory Cycles External bus cycles of the XC236xB are executed in five consecutive cycle phases (AB, C, D, E, F). The duration of each cycle phase is programmable (via the TCONCSx registers) to adapt the external bus cycles to the respective external module (memory, peripheral, etc.). The duration of the access phase can optionally be controlled by the external module using the READY handshake input. This table provides a summary of the phases and the ranges for their length. Table 31 Programmable Bus Cycle Phases (see timing diagrams) Parameter Valid Values Unit 1 ... 2 (5) TCS
Bus Cycle Phase
Address setup phase, the standard duration of this tpAB phase (1 ... 2 TCS) can be extended by 0 ... 3 TCS if the address window is changed Command delay phase Write Data setup/MUX Tristate phase Access phase Address/Write Data hold phase tpC tpD tpE tpF
0...3 0...1 1 ... 32 0...3
TCS TCS TCS TCS
Note: The bandwidth of a parameter (from minimum to maximum value) covers the whole operating range (temperature, voltage) as well as process variations. Within a given device, however, this bandwidth is smaller than the specified range. This is also due to interdependencies between certain parameters. Some of these interdependencies are described in additional notes (see standard timing). Note: Operating Conditions apply. Table 32 is valid under the following conditions: CL= 20 pF; voltage_range= upper ; voltage_range= upper Table 32 Parameter External Bus Timing for Upper Voltage Range Symbol Min. Output valid delay for RD, t10 CC WR(L/H) Output valid delay for BHE, ALE - - - Values Typ. 7 7 8 Max. 13 14 14 ns ns ns Unit Note / Test Condition
t11 CC
Address output valid delay t12 CC for A23 ... A0
Data Sheet
108
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 32 Parameter External Bus Timing for Upper Voltage Range (cont'd) Symbol Min. Address output valid delay t13 CC for AD15 ... AD0 (MUX mode) - Values Typ. 8 Max. 15 ns Unit Note / Test Condition
t14 CC Data output valid delay for t15 CC
Output valid delay for CS AD15 ... AD0 (write data, MUX mode) Data output valid delay for t16 CC D15 ... D0 (write data, DEMUX mode) Output hold time for RD, WR(L/H)
- -
7 8
13 15
ns ns
-
8
15
ns
t20 CC
-2 -2 -3 -3 -3
6 6 6 6 6
8 10 8 11 8
ns ns ns ns ns
Output hold time for BHE, t21 CC ALE Address output hold time for AD15 ... AD0 Output hold time for CS Data output hold time for D15 ... D0 and AD15 ... AD0
t23 CC t24 CC t25 CC
Input setup time for t30 SR READY, D15 ... D0, AD15 ... AD0 Input hold time READY, t31 SR D15 ... D0, AD15 ... AD01)
25
15
-
ns
0
-7
-
ns
1) Read data are latched with the same internal clock edge that triggers the address change and the rising edge of RD. Address changes before the end of RD have no impact on (demultiplexed) read cycles. Read data can change after the rising edge of RD.
Table 33 is valid under the following conditions: CL= 20 pF; voltage_range= lower ; voltage_range= lower
Data Sheet
109
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 33 Parameter External Bus Timing for Lower Voltage Range Symbol Min. Output valid delay for RD, t10 CC WR(L/H) Output valid delay for BHE, ALE - - - - Values Typ. 11 10 11 10 Max. 20 21 22 22 ns ns ns ns Unit Note / Test Condition
t11 CC
Address output valid delay t12 CC for A23 ... A0 Address output valid delay t13 CC for AD15 ... AD0 (MUX mode)
t14 CC Data output valid delay for t15 CC
Output valid delay for CS AD15 ... AD0 (write data, MUX mode) Data output valid delay for t16 CC D15 ... D0 (write data, DEMUX mode) Output hold time for RD, WR(L/H)
- -
10 10
13 22
ns ns
-
10
22
ns
t20 CC
-2 -2 -3 -3 -3
8 8 8 8 8
10 10 10 11 10
ns ns ns ns ns
Output hold time for BHE, t21 CC ALE Address output hold time for AD15 ... AD0 Output hold time for CS Data output hold time for D15 ... D0 and AD15 ... AD0
t23 CC t24 CC t25 CC
Input setup time for t30 SR READY, D15 ... D0, AD15 ... AD0 Input hold time READY, t31 SR D15 ... D0, AD15 ... AD01)
29
17
-
ns
0
-9
-
ns
1) Read data are latched with the same internal clock edge that triggers the address change and the rising edge of RD. Address changes before the end of RD have no impact on (demultiplexed) read cycles. Read data can change after the rising edge of RD.
Data Sheet
110
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
tpAB
CLKOUT
tpC
tpD
tpE
tpF
t21 t11
ALE
t11/t12/t14
A23-A16, BHE, CSx High Address
t24
t20 t10
RD WR(L/H)
t31 t13
AD15-AD0 (read) Low Address
t23
t30
Data In
t13
AD15-AD0 (write) Low Address
t15
Data Out
t25
MC_X_EBCMUX
Figure 23
Multiplexed Bus Cycle
Data Sheet
111
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
tpAB
CLKOUT
tpC
tpD
tpE
tpF
t21 t11
ALE
t11/t12/t14
A23-A0, BHE, CSx Address
t24
t20 t10
RD WR(L/H)
t31 t30
D15-D0 (read) Data In
t16
D15-D0 (write) Data Out
t25
MC_X_EBCDEMUX
Figure 24
Demultiplexed Bus Cycle
4.7.5.1
Bus Cycle Control with the READY Input
The duration of an external bus cycle can be controlled by the external circuit using the READY input signal. The polarity of this input signal can be selected. Synchronous READY permits the shortest possible bus cycle but requires the input signal to be synchronous to the reference signal CLKOUT. An asynchronous READY signal puts no timing constraints on the input signal but incurs a minimum of one waitstate due to the additional synchronization stage. The minimum
Data Sheet 112 V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters duration of an asynchronous READY signal for safe synchronization is one CLKOUT period plus the input setup time. An active READY signal can be deactivated in response to the trailing (rising) edge of the corresponding command (RD or WR). If the next bus cycle is controlled by READY, an active READY signal must be disabled before the first valid sample point in the next bus cycle. This sample point depends on the programmed phases of the next cycle.
tpD
CLKOUT
tpE
tpRDY
tpF
t10
RD, WR
t20
t31 t30
D15-D0 (read) Data In
t25
D15-D0 (write) Data Out
t31 t30
READY Synchronous Not Rdy
t31 t30
READY
t31 t30
READY Asynchron. Not Rdy
t31 t30
READY
MC_X_EBCREADY
Figure 25
READY Timing
Data Sheet
113
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Note: If the READY input is sampled inactive at the indicated sampling point ("Not Rdy") a READY-controlled waitstate is inserted (tpRDY), sampling the READY input active at the indicated sampling point ("Ready") terminates the currently running bus cycle. Note the different sampling points for synchronous and asynchronous READY. This example uses one mandatory waitstate (see tpE) before the READY input value is used.
Data Sheet
114
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.6
Synchronous Serial Interface Timing
The following parameters are applicable for a USIC channel operated in SSC mode. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 34 is valid under the following conditions: CL= 20 pF; SSC= master ; voltage_range= upper Table 34 Parameter USIC SSC Master Mode Timing for Upper Voltage Range Symbol Min. Slave select output SELO t1 CC active to first SCLKOUT transmit edge Slave select output SELO t2 CC inactive after last SCLKOUT receive edge Data output DOUT valid time 81) Values Typ. - Max. - ns Unit Note / Test Condition
tSYS -
61) -6 31
tSYS -
-
-
ns
t3 CC
- -
9 -
ns ns
Receive data input setup t4 SR time to SCLKOUT receive edge Data input DX0 hold time from SCLKOUT receive edge
1) tSYS = 1 / fSYS
t5 SR
-4
-
-
ns
Table 35 is valid under the following conditions: CL= 20 pF; SSC= master ; voltage_range= lower
Data Sheet
115
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 35 Parameter USIC SSC Master Mode Timing for Lower Voltage Range Symbol Min. Slave select output SELO t1 CC active to first SCLKOUT transmit edge Slave select output SELO t2 CC inactive after last SCLKOUT receive edge Data output DOUT valid time 101) Values Typ. - Max. - ns Unit Note / Test Condition
tSYS -
91) -7 40
tSYS -
-
-
ns
t3 CC
- -
11 -
ns ns
Receive data input setup t4 SR time to SCLKOUT receive edge Data input DX0 hold time from SCLKOUT receive edge
1) tSYS = 1 / fSYS
t5 SR
-5
-
-
ns
Table 36 is valid under the following conditions: CL= 20 pF; SSC= slave ; voltage_range= upper Table 36 Parameter Select input DX2 setup to first clock input DX1 transmit edge1) USIC SSC Slave Mode Timing for Upper Voltage Range Symbol Min. Values Typ. - Max. - ns 7 Unit Note / Test Condition
t10 SR
Select input DX2 hold after t11 SR last clock input DX1 receive edge1) Receive data input setup time to shift clock receive edge1)
7
-
-
ns
t12 SR
7
-
-
ns
Data Sheet
116
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 36 Parameter Data input DX0 hold time from clock input DX1 receive edge1) Data output DOUT valid time USIC SSC Slave Mode Timing for Upper Voltage Range (cont'd) Symbol Min. Values Typ. - Max. - ns 5 Unit Note / Test Condition
t13 SR
t14 CC
7
-
33
ns
1) These input timings are valid for asynchronous input signal handling of slave select input, shift clock input, and receive data input (bits DXnCR.DSEN = 0).
Table 37 is valid under the following conditions: CL= 20 pF; SSC= slave ; voltage_range= lower Table 37 Parameter Select input DX2 setup to first clock input DX1 transmit edge1) USIC SSC Slave Mode Timing for Lower Voltage Range Symbol Min. Values Typ. - Max. - ns 7 Unit Note / Test Condition
t10 SR
Select input DX2 hold after t11 SR last clock input DX1 receive edge1) Receive data input setup time to shift clock receive edge1) Data input DX0 hold time from clock input DX1 receive edge1) Data output DOUT valid time
7
-
-
ns
t12 SR
7
-
-
ns
t13 SR
5
-
-
ns
t14 CC
8
-
41
ns
1) These input timings are valid for asynchronous input signal handling of slave select input, shift clock input, and receive data input (bits DXnCR.DSEN = 0).
Data Sheet
117
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
Master Mode Timing
t1
Select Output SELOx Clock Output SCLKOUT Data Output DOUT
Inactive Active
t2
Inactive
First Transmit Edge
Receive Edge
Transmit Edge
Last Receive Edge
t3
t3
t4
Data Input DX0
t5
t4
t5
Data valid
Data valid
Slave Mode Timing
t10
Select Input DX2 Clock Input DX1
Inactive Active
t11
Inactive
First Transmit Edge
Receive Edge
Transmit Edge
Last Receive Edge
t12
Data Input DX0
t13
t12
t 13
Data valid
Data valid
t 14
Data Output DOUT
t14
Transmit Edge: with this clock edge transmit data is shifted to transmit data output , . Receive Edge: with this clock edge receive data at receive data input is latched , . Drawn for BRGH.SCLKCFG = 00B. Also valid for for SCLKCFG = 01B with inverted SCLKOUT signal . USIC_SSC_TMGX.VSD
Figure 26
USIC - SSC Master/Slave Mode Timing
Note: This timing diagram shows a standard configuration where the slave select signal is low-active and the serial clock signal is not shifted and not inverted.
Data Sheet
118
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
4.7.7
Debug Interface Timing
The debugger can communicate with the XC236xB either via the 2-pin DAP interface or via the standard JTAG interface. Debug via DAP The following parameters are applicable for communication through the DAP debug interface. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 38 is valid under the following conditions: CL= 20 pF; voltage_range= upper Table 38 Parameter DAP0 clock period1) DAP0 high time DAP0 low time
1)
DAP Interface Timing for Upper Voltage Range Symbol Min. Values Typ. - - - - - - - 20 Max. - - - 4 4 - - - ns ns ns ns ns ns ns ns 25 8 8 - - 6 6 17 Unit Note / Test Condition
DAP0 clock rise time DAP0 clock fall time DAP1 setup to DAP0 rising edge DAP1 hold after DAP0 rising edge DAP1 valid per DAP0 clock period2)
t11 SR t12 SR t13 SR t14 SR t15 SR t16 SR t17 SR t19 CC
1) See the DAP chapter for clock rate restrictions in the Active::IDLE protocol state. 2) The Host has to find a suitable sampling point by analyzing the sync telegram response.
Table 39 is valid under the following conditions: CL= 20 pF; voltage_range= lower
Data Sheet
119
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 39 Parameter DAP0 clock period1) DAP0 high time DAP0 low time
1)
DAP Interface Timing for Lower Voltage Range Symbol Min. Values Typ. - - - - - - - 17 Max. - - - 4 4 - - - ns ns ns ns ns ns ns ns 25 8 8 - - 6 6 12 Unit Note / Test Condition
DAP0 clock rise time DAP0 clock fall time DAP1 setup to DAP0 rising edge DAP1 hold after DAP0 rising edge DAP1 valid per DAP0 clock period2)
t11 SR t12 SR t13 SR t14 SR t15 SR t16 SR t17 SR t19 CC
1) See the DAP chapter for clock rate restrictions in the Active::IDLE protocol state. 2) The Host has to find a suitable sampling point by analyzing the sync telegram response.
t11
0.9 VD D P 0.5 VD D P
t1 5 t1 2 t1 3
t14
0.1 VD D P
MC_DAP0
Figure 27
Test Clock Timing (DAP0)
Data Sheet
120
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
DAP0
t1 6
DAP1
t1 7
MC_ DAP1_RX
Figure 28
DAP Timing Host to Device
t1 1
DAP1
t1 9
MC_ DAP1_TX
Figure 29
DAP Timing Device to Host
Note: The transmission timing is determined by the receiving debugger by evaluating the sync-request synchronization pattern telegram. Debug via JTAG The following parameters are applicable for communication through the JTAG debug interface. The JTAG module is fully compliant with IEEE1149.1-2000. Note: These parameters are not subject to production test but verified by design and/or characterization. Note: Operating Conditions apply. Table 40 is valid under the following conditions: CL= 20 pF; voltage_range= upper Table 40 Parameter TCK clock period TCK high time
Data Sheet
JTAG Interface Timing for Upper Voltage Range Symbol Min. Values Typ. - -
121
Unit Max. - - ns ns
Note / Test Condition
1)
t1 SR t2 SR
50 16
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 40 Parameter TCK low time TCK clock rise time TCK clock fall time TDI/TMS setup to TCK rising edge TDI/TMS hold after TCK rising edge JTAG Interface Timing for Upper Voltage Range (cont'd) Symbol Min. Values Typ. - - - - - 25 25 Max. - 8 8 - - 29 29 ns ns ns ns ns ns ns 16 - - 6 6 - - Unit Note / Test Condition
t3 SR t4 SR t5 SR t6 SR t7 SR
TDO valid from TCK falling t8 CC edge (propagation delay)2) TDO high impedance to valid output from TCK falling edge3)2) TDO valid output to high impedance from TCK falling edge2)
t9 CC
t10 CC
-
25
29
ns
TDO hold after TCK falling t18 CC edge2)
5
-
-
ns
1) Under typical conditions, the JTAG interface can operate at transfer rates up to 20 MHz. 2) The falling edge on TCK is used to generate the TDO timing. 3) The setup time for TDO is given implicitly by the TCK cycle time.
Table 41 is valid under the following conditions: CL= 20 pF; voltage_range= lower Table 41 Parameter TCK clock period TCK high time TCK low time TCK clock rise time TCK clock fall time TDI/TMS setup to TCK rising edge
Data Sheet
JTAG Interface Timing for Lower Voltage Range Symbol Min. Values Typ. - - - - - - Max. - - - 8 8 - ns ns ns ns ns ns 50 16 16 - - 6 Unit Note / Test Condition
t1 SR t2 SR t3 SR t4 SR t5 SR t6 SR
122
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters Table 41 Parameter TDI/TMS hold after TCK rising edge JTAG Interface Timing for Lower Voltage Range (cont'd) Symbol Min. Values Typ. - 32 32 Max. - 36 36 ns ns ns 6 - - Unit Note / Test Condition
t7 SR
TDO valid from TCK falling t8 CC edge (propagation delay)1) TDO high impedance to valid output from TCK falling edge2)1) TDO valid output to high impedance from TCK falling edge1)
t9 CC
t10 CC
-
32
36
ns
TDO hold after TCK falling t18 CC edge1)
5
-
-
ns
1) The falling edge on TCK is used to generate the TDO timing. 2) The setup time for TDO is given implicitly by the TCK cycle time.
t1
0.9 VD D P 0.5 VD D P
t5 t2 t3
t4
0.1 VD D P
MC_ JTAG_ TCK
Figure 30
Test Clock Timing (TCK)
Data Sheet
123
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Electrical Parameters
TCK
t6
TMS
t7
t6
TDI
t7
t9
TDO
t8
t1 0
t18
MC_JTAG
Figure 31
JTAG Timing
Data Sheet
124
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Package and Reliability
5
Package and Reliability
The XC2000 Family devices use the package type PG-LQFP (Plastic Green - Low Profile Quad Flat Package). The following specifications must be regarded to ensure proper integration of the XC236xB in its target environment.
5.1
Packaging
These parameters specify the packaging rather than the silicon. Table 42 Parameter Exposed Pad Dimension Power Dissipation Thermal resistance Junction-Ambient Package Parameters (PG-LQFP-100-8) Symbol Min. Ex x Ey - Limit Values Max. 5.2 x 5.2 0.8 54 49 27 mm W - - Unit Notes
PDISS RJA
- -
K/W No thermal via1) K/W 4-layer, no pad2) K/W 4-layer, pad3)
1) Device mounted on a 4-layer board without thermal vias; exposed pad not soldered. 2) Device mounted on a 4-layer JEDEC board (according to JESD 51-7) with thermal vias; exposed pad not soldered. 3) Device mounted on a 4-layer JEDEC board (according to JESD 51-7) with thermal vias; exposed pad soldered to the board.
Note: To improve the EMC behavior, it is recommended to connect the exposed pad to the board ground, independent of the thermal requirements. Board layout examples are given in an application note. Package Compatibility Considerations The XC236xB is a member of the XC2000 Family of microcontrollers. It is also compatible to a certain extent with members of similar families or subfamilies. Each package is optimized for the device it houses. Therefore, there may be slight differences between packages of the same pin-count but for different device types. In particular, the size of the Exposed Pad (if present) may vary. If different device types are considered or planned for an application, it must be ensured that the board layout fits all packages under consideration.
Data Sheet
125
V1.2, 2010-04
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Package and Reliability Package Outlines
1.6 MAX.
1.4 0.05
0.1 0.05
0.15 -0.06
+0.05
H 0.6 0.15
0.5 12 0.22 0.05 C 0.08 C 100x
0.08 M A-B D C 100x
16 14
1)
0.2 A-B D 100x 0.2 A-B D H 4x
Bottom View Ex
D A B
1)
Ey
14
16
100 1 1
100
Index Marking
Exposed Diepad
1) Does not include plastic or metal protrusion of 0.25 max. per side
PG-LQFP-100-3, -4, -8-PO V11
Figure 32
PG-LQFP-100-8 (Plastic Green Thin Quad Flat Package)
All dimensions in mm. You can find complete information about Infineon packages, packing and marking in our Infineon Internet Page "Packages": http://www.infineon.com/packages
Data Sheet
126
V1.2, 2010-04
7 MAX.
XC2361B, XC2363B, XC2364B, XC2365B XC2000 Family / Value Line
Package and Reliability
5.2
Thermal Considerations
When operating the XC236xB in a system, the total heat generated in the chip must be dissipated to the ambient environment to prevent overheating and the resulting thermal damage. The maximum heat that can be dissipated depends on the package and its integration into the target board. The "Thermal resistance RJA" quantifies these parameters. The power dissipation must be limited so that the average junction temperature does not exceed 150 C. The difference between junction temperature and ambient temperature is determined by T = (PINT + PIOSTAT + PIODYN) x RJA The internal power consumption is defined as PINT = VDDP x IDDP (switching current and leakage current). The static external power consumption caused by the output drivers is defined as
PIOSTAT = ((VDDP-VOH) x IOH) + (VOL x IOL)
The dynamic external power consumption caused by the output drivers (PIODYN) depends on the capacitive load connected to the respective pins and their switching frequencies. If the total power dissipation for a given system configuration exceeds the defined limit, countermeasures must be taken to ensure proper system operation: * * * * Reduce VDDP, if possible in the system Reduce the system frequency Reduce the number of output pins Reduce the load on active output drivers
Data Sheet
127
V1.2, 2010-04
www.infineon.com
Published by Infineon Technologies AG


▲Up To Search▲   

 
Price & Availability of XC2361B

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X